mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
16 lines
392 B
YAML
16 lines
392 B
YAML
|
- hosts: testhost
|
||
|
gather_facts: no
|
||
|
any_errors_fatal: true
|
||
|
tasks:
|
||
|
- name: EXPECTED FAILURE shell exe of /bin/false for testhost
|
||
|
shell: '{{ "/bin/false" if inventory_hostname == "testhost" else "/bin/true" }}'
|
||
|
|
||
|
- debug:
|
||
|
msg: "any_errors_fatal_play_level_post_fail"
|
||
|
|
||
|
- hosts: testhost
|
||
|
any_errors_fatal: true
|
||
|
tasks:
|
||
|
- debug:
|
||
|
msg: "and in another play"
|