mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #5669 from mscherer/fix_synchronize_local
Make synchronize module work better with local transport, fix #5668
This commit is contained in:
commit
e3e6f02835
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ class ActionModule(object):
|
||||||
|
|
||||||
if options.get('mode', 'push') == 'pull':
|
if options.get('mode', 'push') == 'pull':
|
||||||
(dest_host, src_host) = (src_host, dest_host)
|
(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',
|
user = inject.get('ansible_ssh_user',
|
||||||
self.runner.remote_user)
|
self.runner.remote_user)
|
||||||
private_key = inject.get('ansible_ssh_private_key_file', self.runner.private_key_file)
|
private_key = inject.get('ansible_ssh_private_key_file', self.runner.private_key_file)
|
||||||
|
|
Loading…
Reference in a new issue