It is just a formatting option. The following two tasks are functionally identical:
- name: Run a script with arguments (using 'cmd' parameter)
script:
cmd: /some/local/script.sh --some-argument 1234
- name: Run a script with arguments (freeform)
script: /some/local/create_file.sh --some-argument 1234
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…