diff --git a/lib/ansible/runner/action_plugins/synchronize.py b/lib/ansible/runner/action_plugins/synchronize.py index 9439f4350a..a7e9873096 100644 --- a/lib/ansible/runner/action_plugins/synchronize.py +++ b/lib/ansible/runner/action_plugins/synchronize.py @@ -20,6 +20,7 @@ import os.path from ansible import utils from ansible.runner.return_data import ReturnData +import ansible.utils.template as template class ActionModule(object): @@ -57,6 +58,9 @@ class ActionModule(object): src = options.get('src', None) dest = options.get('dest', None) + src = template.template(self.runner.basedir, src, inject) + dest = template.template(self.runner.basedir, dest, inject) + try: options['local_rsync_path'] = inject['ansible_rsync_path'] except KeyError: