summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/include_parent_role_vars/tasks/included_by_ourselves.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/include_parent_role_vars/tasks/included_by_ourselves.yml')
-rw-r--r--test/integration/targets/include_parent_role_vars/tasks/included_by_ourselves.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/integration/targets/include_parent_role_vars/tasks/included_by_ourselves.yml b/test/integration/targets/include_parent_role_vars/tasks/included_by_ourselves.yml
new file mode 100644
index 0000000..3ea9300
--- /dev/null
+++ b/test/integration/targets/include_parent_role_vars/tasks/included_by_ourselves.yml
@@ -0,0 +1,14 @@
+# Copyright 2019 Ansible Project
+# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
+
+- name: check if the inclusion tree shows ourself twice as well as our initial parent
+ assert:
+ that:
+ - "ansible_parent_role_names|length == 2"
+ - "ansible_parent_role_names[0] == 'include_parent_role_vars'" # Since we included ourselves, we're the top level
+ - "ansible_parent_role_names[1] == 'special_vars'"
+
+- name: ensure that ansible_parent_role_paths has the same length as ansible_parent_role_names
+ assert:
+ that:
+ - "ansible_parent_role_names|length == ansible_parent_role_paths|length"