Ensure 'environment' is set in the magic variables

Fixes #13033
pull/13098/merge
James Cammarata 9 years ago
parent d6f61d5397
commit 937584cd52

@ -366,6 +366,7 @@ class VariableManager:
variables['role_names'] = [r._role_name for r in play.roles]
if task:
variables['environment'] = task.environment
if task._role:
variables['role_path'] = task._role._role_path

Loading…
Cancel
Save