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- name: check if the inclusion tree shows ourself twice as well as our initial parent
5  assert:
6    that:
7      - "ansible_parent_role_names|length == 2"
8      - "ansible_parent_role_names[0] == 'include_parent_role_vars'"  # Since we included ourselves, we're the top level
9      - "ansible_parent_role_names[1] == 'special_vars'"
10
11- name: ensure that ansible_parent_role_paths has the same length as ansible_parent_role_names
12  assert:
13    that:
14      - "ansible_parent_role_names|length == ansible_parent_role_paths|length"
15