Debian Codegraph @

test/integration/targets/blocks/block_in_rescue.yml

raw
1 - hosts: localhost
2 gather_facts: no
3 tasks:
4 - block:
5 - name: "EXPECTED FAILURE"
6 fail:
7 msg: "fail to test single level block in rescue"
8 rescue:
9 - block:
10 - debug:
11 msg: Rescued!
12
13 - block:
14 - name: "EXPECTED FAILURE"
15 fail:
16 msg: "fail to test multi-level block in rescue"
17 rescue:
18 - block:
19 - block:
20 - debug:
21 msg: Rescued!
22
23 - name: "Outer block"
24 block:
25 - name: "Inner block"
26 block:
27 - name: "EXPECTED FAILURE"
28 fail:
29 msg: "fail to test multi-level block"
30 rescue:
31 - name: "Rescue block"
32 block:
33 - debug: msg="Inner block rescue"