diff --git a/plugins/action/synchronize.py b/plugins/action/synchronize.py index a5752b963c..36751d4610 100644 --- a/plugins/action/synchronize.py +++ b/plugins/action/synchronize.py @@ -347,6 +347,7 @@ def run(self, tmp=None, task_vars=None): else: user = task_vars.get('ansible_user') or self._play_context.remote_user + user = self._templar.template(user) # Private key handling # Use the private_key parameter if passed else use context private_key_file