Re-adding role_names magic variable

Fixes #12863
pull/12878/head
James Cammarata 9 years ago
parent 404ded2b03
commit 498c27d09a

@ -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…
Cancel
Save