1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix args templating for complex args with the copy module.

This commit is contained in:
Michael DeHaan 2013-03-07 00:27:43 -05:00
parent 9763ae8e21
commit 2bb305f6d5

View file

@ -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")