Debian Codegraph @

test/integration/targets/blocks/78612.yml

raw
1 - hosts: all
2 gather_facts: false
3 tasks:
4 - block:
5 - fail:
6 when: inventory_hostname == 'host1'
7 rescue:
8 - block:
9 - fail:
10 when: inventory_hostname == 'host1'
11
12 - assert:
13 that:
14 - "'host1' not in ansible_play_hosts"
15 - "'host1' not in ansible_play_batch"
16 success_msg: PASSED