parent
404ded2b03
commit
498c27d09a
1 changed files with 3 additions and 0 deletions
|
@ -347,6 +347,9 @@ class VariableManager:
|
||||||
variables['hostvars'] = hostvars
|
variables['hostvars'] = hostvars
|
||||||
variables['vars'] = hostvars[host.get_name()]
|
variables['vars'] = hostvars[host.get_name()]
|
||||||
|
|
||||||
|
if play:
|
||||||
|
variables['role_names'] = [r._role_name for r in play.roles]
|
||||||
|
|
||||||
if task:
|
if task:
|
||||||
if task._role:
|
if task._role:
|
||||||
variables['role_path'] = task._role._role_path
|
variables['role_path'] = task._role._role_path
|
||||||
|
|
Loading…
Reference in a new issue