Skip to content
Snippets Groups Projects
Commit 0ab4c9fd authored by Sebastian Friedel's avatar Sebastian Friedel
Browse files

fixed variable templating/interpolation for host_vars

parent e9f2998d
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ class ActionModule(object):
vv('Ensure hosts...')
for host in self.runner.host_set:
vv('- ' + host)
host_vars = self.runner.inventory.get_variables(host)
host_vars = inject['hostvars'][host]
facts = host_vars.get('ansible_facts', {})
location = host_vars.get('location')
if not location:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment