Debian Codegraph @

test/integration/targets/any_errors_fatal/80981.yml

raw
1 - hosts: testhost,testhost2
2 gather_facts: false
3 any_errors_fatal: true
4 tasks:
5 - block:
6 - fail:
7 when: inventory_hostname == "testhost"
8 - name: any_errors_fatal fails all hosts when any of them fails
9 debug:
10 msg: SHOULD NOT HAPPEN
11 rescue:
12 - name: Rescues both hosts
13 debug:
14 msg: rescuedd
15 - name: You can recover from fatal errors by adding a rescue section to the block.
16 debug:
17 msg: recovered