Skip to content
Snippets Groups Projects
Commit af4c9ffc authored by jurgenhaas's avatar jurgenhaas
Browse files

Merge pull request #4 from sfriedel/variable-templating

fixed variable templating/interpolation for host_vars
parents 969fb560 0ab4c9fd
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,7 @@ class ActionModule(object): ...@@ -67,7 +67,7 @@ class ActionModule(object):
vv('Ensure hosts...') vv('Ensure hosts...')
for host in self.runner.host_set: for host in self.runner.host_set:
vv('- ' + host) vv('- ' + host)
host_vars = self.runner.inventory.get_variables(host) host_vars = inject['hostvars'][host]
facts = host_vars.get('ansible_facts', {}) facts = host_vars.get('ansible_facts', {})
location = host_vars.get('location') location = host_vars.get('location')
if not location: if not location:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment