From 5c5c8fd7ce916af393ed5a798a3cc8b88e3699bf Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Fri, 17 Jan 2014 17:07:59 +0100 Subject: [PATCH] Make synchronize module work better with local transport, fix #5668 --- lib/ansible/runner/action_plugins/synchronize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/runner/action_plugins/synchronize.py b/lib/ansible/runner/action_plugins/synchronize.py index 875cfe692e..af9102138c 100644 --- a/lib/ansible/runner/action_plugins/synchronize.py +++ b/lib/ansible/runner/action_plugins/synchronize.py @@ -99,7 +99,7 @@ class ActionModule(object): if options.get('mode', 'push') == 'pull': (dest_host, src_host) = (src_host, dest_host) - if not dest_host is src_host: + if not dest_host is src_host and self.original_transport != 'local': user = inject.get('ansible_ssh_user', self.runner.remote_user) private_key = inject.get('ansible_ssh_private_key_file', self.runner.private_key_file)