Debian Codegraph @

test/integration/targets/any_errors_fatal/always_block.yml

raw
1 ---
2 - hosts: testhost
3 gather_facts: false
4 any_errors_fatal: true
5 tasks:
6 - block:
7 - name: initial block debug
8 debug: msg='any_errors_fatal_block, i execute normally'
9
10 - name: EXPECTED FAILURE any_errors_fatal, initial block, bin/false to simulate failure
11 command: /bin/false
12
13 - name: after a task that fails I should never execute
14 debug:
15 msg: 'any_errors_fatal_block_post_fail ... i never execute, cause ERROR!'
16 rescue:
17 - name: any_errors_fatal_rescue_block debug
18 debug: msg='any_errors_fatal_rescue_block_start ... I caught an error'
19
20 - name: EXPECTED FAILURE any_errors_fatal in rescue block, using bin/false to simulate error
21 command: /bin/false
22
23 - name: any_errors_fatal post debug
24 debug: msg='any_errors_fatal_rescue_block_post_fail ... I also never execute :-('
25 always:
26 - name: any errors fatal always block debug
27 debug: msg='any_errors_fatal_always_block_start'