Debian Codegraph @

test/integration/targets/handlers/test_flush_handlers_rescue_always.yml

raw
1 - hosts: A,B
2 gather_facts: false
3 tasks:
4 - block:
5 - command: echo
6 notify: sometimes_fail
7
8 - meta: flush_handlers
9 rescue:
10 - debug:
11 msg: 'rescue ran'
12 always:
13 - debug:
14 msg: 'always ran'
15
16 - debug:
17 msg: 'should run for both hosts'
18
19 handlers:
20 - name: sometimes_fail
21 fail:
22 when: inventory_hostname == 'A'