From fe8547cac04d7ee739cad84ea07424688e5df35e Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Thu, 7 Mar 2013 00:04:48 -0500 Subject: [PATCH] Ensure template arguments if complex are still properly templated --- lib/ansible/runner/action_plugins/template.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/runner/action_plugins/template.py b/lib/ansible/runner/action_plugins/template.py index dc44485679..65881be3b9 100644 --- a/lib/ansible/runner/action_plugins/template.py +++ b/lib/ansible/runner/action_plugins/template.py @@ -41,6 +41,9 @@ class ActionModule(object): if complex_args: options.update(complex_args) options.update(utils.parse_kv(module_args)) + options = utils.template(self.runner.basedir, options, inject) + module_args = self.runner._complex_args_hack(options, '') + source = options.get('src', None) dest = options.get('dest', None)