Debian Codegraph @

test/integration/targets/include_import/undefined_var/playbook.yml

raw
1 ---
2 - hosts: testhost
3 gather_facts: false
4 tasks:
5 - include_tasks: "include_tasks.yml"
6 ignore_errors: True
7 register: "_include_tasks_result"
8 when:
9 - "_undefined == 'yes'"
10
11 - assert:
12 that:
13 - "_include_tasks_result is failed"
14 - "_include_tasks_task_result is not defined"
15 msg: "'include_tasks' did not evaluate it's attached condition and failed"
16
17 - include_role:
18 name: "no_log"
19 ignore_errors: True
20 register: "_include_role_result"
21 when:
22 - "_undefined == 'yes'"
23
24 - assert:
25 that:
26 - "_include_role_result is failed"
27 msg: "'include_role' did not evaluate it's attached condition and failed"
28
29 - import_tasks: include_that_defines_var.yml
30 when:
31 - "_undefined == 'yes'"
32
33 - assert:
34 that:
35 - _include_defined_result == 'good'