Debian Codegraph @

test/integration/targets/include_parent_role_vars/tasks/main.yml

raw
1 # Copyright 2019 Ansible Project
2 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
3
4
5 - name: ensure our parent role tree to contain only our direct parent item
6 assert:
7 that:
8 - "ansible_parent_role_names == ['special_vars']"
9
10 - name: ensure that ansible_parent_role_paths has the same length as ansible_parent_role_names
11 assert:
12 that:
13 - "ansible_parent_role_names|length == ansible_parent_role_paths|length"
14
15 # task importing should not affect ansible_parent_role_names
16 - name: test task-importing after we've been included by another role
17 import_tasks: "included_by_other_role.yml"
18
19 # task inclusion should not affect ansible_parent_role_names
20 - name: test task-inclusion after we've been included by another role
21 include_tasks: "included_by_other_role.yml"