You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/command_nonexisting/tasks/main.yml

5 lines
166 B
YAML

- command: commandthatdoesnotexist --would-be-awkward
register: res
changed_when: "'changed' in res.stdout"
failed_when: "res.stdout != '' or res.stderr != ''"