1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/integration/targets/include_import/undefined_var/playbook.yml

37 lines
909 B
YAML
Raw Normal View History

---
- hosts: testhost
gather_facts: false
tasks:
- include_tasks: "include_tasks.yml"
ignore_errors: True
register: "_include_tasks_result"
when:
- "_undefined == 'yes'"
- assert:
that:
- "_include_tasks_result is failed"
- "_include_tasks_task_result is not defined"
msg: "'include_tasks' did not evaluate it's attached condition and failed"
- include_role:
name: "no_log"
ignore_errors: True
register: "_include_role_result"
when:
- "_undefined == 'yes'"
- assert:
that:
- "_include_role_result is failed"
msg: "'include_role' did not evaluate it's attached condition and failed"
- include: include_that_defines_var.yml
static: yes
when:
- "_undefined == 'yes'"
- assert:
that:
- _include_defined_result == 'good'