mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
404ded2b03
commit
498c27d09a
1 changed files with 3 additions and 0 deletions
|
@ -347,6 +347,9 @@ class VariableManager:
|
|||
variables['hostvars'] = hostvars
|
||||
variables['vars'] = hostvars[host.get_name()]
|
||||
|
||||
if play:
|
||||
variables['role_names'] = [r._role_name for r in play.roles]
|
||||
|
||||
if task:
|
||||
if task._role:
|
||||
variables['role_path'] = task._role._role_path
|
||||
|
|
Loading…
Reference in a new issue