Add ansible_parent_role_names magic variable (#46687)

-Add: Test cases for ansible_parent_role_names and ansible_parent_role_paths
-Add: ansible_parent_role_names/paths variables for when a role is being included by another role.
This commit is contained in:
Xaroth
2019-04-23 17:55:05 +02:00
committed by Sam Doran
parent b442706b54
commit a9f24e097f
9 changed files with 135 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
minor_changes:
- magic variables - added a new ``ansible_parent_role_names`` magic variable that, when a role is included by another
role, contains a list of all parent roles.
- magic variables - added a new ``ansible_parent_role_paths`` magic variable that, when a role is included by another
role, contains a list of all parent role paths.