mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 06:30:19 -07:00
add --private-key option and related infrastructure to make paramiko work
with a private key file - not just an agent or pw
This commit is contained in:
parent
8e2528eb83
commit
96ef6482c5
4 changed files with 10 additions and 4 deletions
|
@ -87,8 +87,8 @@ class ParamikoConnection(object):
|
|||
username=user,
|
||||
allow_agent=True,
|
||||
look_for_keys=True,
|
||||
key_filename=self.runner.private_key_file,
|
||||
password=self.runner.remote_pass,
|
||||
# key_filename=None, # TODO: allow this to be passed in
|
||||
timeout=self.runner.timeout,
|
||||
port=self.port
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue