mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 12:21:26 -07:00
Fixed identity key logic.
This commit is contained in:
parent
9f170f579a
commit
adbca9d251
2 changed files with 8 additions and 10 deletions
|
@ -77,12 +77,11 @@ class ActionModule(object):
|
|||
if not dest_host is src_host:
|
||||
user = inject.get('ansible_ssh_user',
|
||||
self.runner.remote_user)
|
||||
|
||||
# should we support ssh_password and ssh_port here??
|
||||
|
||||
options['private_key'] = \
|
||||
private_key = \
|
||||
inject.get('ansible_ssh_private_key_file',
|
||||
self.runner.private_key_file)
|
||||
if not private_key is None:
|
||||
options['private_key'] = private_key
|
||||
src = self._process_origin(src_host, src, user)
|
||||
dest = self._process_origin(dest_host, dest, user)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue