From 1942a69ed27387d48a338f755e32bc4feb01e1a1 Mon Sep 17 00:00:00 2001 From: Paul Oyston Date: Thu, 27 Mar 2014 17:06:20 +0000 Subject: [PATCH] Added template call to _executor_internal to allow the passing of arbitrary data to modules. --- lib/ansible/runner/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index 85f4b5d0678..502df176df8 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -543,10 +543,12 @@ class Runner(object): # fireball, local, etc port = self.remote_port + module_vars = template.template(self.basedir, self.module_vars, host_variables) + inject = {} inject = utils.combine_vars(inject, self.default_vars) inject = utils.combine_vars(inject, host_variables) - inject = utils.combine_vars(inject, self.module_vars) + inject = utils.combine_vars(inject, module_vars) inject = utils.combine_vars(inject, self.setup_cache[host]) inject.setdefault('ansible_ssh_user', self.remote_user) inject['hostvars'] = HostVars(self.setup_cache, self.inventory)