Debian Codegraph @

test/integration/targets/infra/test_test_infra.yml

raw
1 - hosts: testhost
2 gather_facts: no
3 tags:
4 - always
5 tasks:
6 - name: ensure fail action produces a failing result
7 fail:
8 ignore_errors: yes
9 register: fail_out
10
11 - debug:
12 msg: fail works ({{ fail_out.failed }})
13
14 - name: ensure assert produces a failing result
15 assert:
16 that: false
17 ignore_errors: yes
18 register: assert_out
19
20 - debug:
21 msg: assert works ({{ assert_out.failed }})
22
23 - name: EXPECTED FAILURE ensure fail action stops execution
24 fail:
25 msg: fail actually failed (this is expected)