From 2bb305f6d57cc6b8158ac8f82b978a7def552d57 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Thu, 7 Mar 2013 00:27:43 -0500 Subject: [PATCH] Fix args templating for complex args with the copy module. --- lib/ansible/runner/action_plugins/copy.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/runner/action_plugins/copy.py b/lib/ansible/runner/action_plugins/copy.py index 60e29ff885..6ed9414a1b 100644 --- a/lib/ansible/runner/action_plugins/copy.py +++ b/lib/ansible/runner/action_plugins/copy.py @@ -38,6 +38,8 @@ class ActionModule(object): options.update(utils.parse_kv(module_args)) source = options.get('src', None) dest = options.get('dest', None) + options = utils.template(self.runner.basedir, options, inject) + module_args = self.runner._complex_args_hack(options, '') if (source is None and not 'first_available_file' in inject) or dest is None: result=dict(failed=True, msg="src and dest are required")