ansible/test/integration/targets/alternatives/tasks/path_is_checked.yml

13 lines
261 B
YAML
Raw Normal View History

- 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'