- target: anyhost-01 command: - "sudo rm -f /var/tmp/hello_rundock_from_sudo_scenario" - "sudo rm -f /var/tmp/hello_rundock_from_no_sudo_scenario" task: - sudo_touch --- anyhost-01: host: ssh_opts: port: user: tester key: "" --- sudo_touch: command: - sudo: true - "sudo touch /var/tmp/hello_rundock_from_sudo_scenario" - sudo: false - "touch /var/tmp/hello_rundock_from_no_sudo_scenario"