ansible/test/integration/targets/alternatives/tasks/path_is_checked.yml
2017-09-14 11:06:29 -07:00

12 lines
261 B
YAML

- name: Try with nonexistent path
alternatives:
name: dummy
path: '/non/existent/path/there'
link: '/usr/bin/dummy'
ignore_errors: True
register: alternative
- name: Check previous task failed
assert:
that:
- 'alternative|failed'