From 0ab4c9fdc602c575541484f9d4c77a3643f67077 Mon Sep 17 00:00:00 2001 From: Sebastian Friedel <sef@voxelbrain.com> Date: Mon, 9 Feb 2015 15:41:26 +0100 Subject: [PATCH] fixed variable templating/interpolation for host_vars --- action_plugins/serverdensity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action_plugins/serverdensity.py b/action_plugins/serverdensity.py index ee8e634..aee54f0 100644 --- a/action_plugins/serverdensity.py +++ b/action_plugins/serverdensity.py @@ -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: -- GitLab