Commit 81e2d871 by Rob Parrott

inject a dictionary of avaiable variables and the environment into the executor,…

inject a dictionary of avaiable variables and the environment into the executor, so that templates can be used to debug playbooks by dumping more of the available context.
parent 2baece3a
......@@ -337,6 +337,8 @@ class Runner(object):
inject['hostvars'] = HostVars(self.setup_cache, self.inventory)
inject['group_names'] = host_variables.get('group_names', [])
inject['groups'] = self.inventory.groups_list()
inject['vars'] = self.module_vars
inject['environment'] = self.environment
# allow with_foo to work in playbooks...
items = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment