mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
Expand ~ shell shortcuts for the --private-key argument
This commit is contained in:
parent
7df3d811f2
commit
4c64d0d6be
2 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ class Connection(object):
|
|||
if self.port is not None:
|
||||
self.common_args += ["-o", "Port=%d" % (self.port)]
|
||||
if self.runner.private_key_file is not None:
|
||||
self.common_args += ["-o", "IdentityFile="+self.runner.private_key_file]
|
||||
self.common_args += ["-o", "IdentityFile="+os.path.expanduser(self.runner.private_key_file)]
|
||||
if self.runner.remote_pass:
|
||||
self.common_args += ["-o", "GSSAPIAuthentication=no",
|
||||
"-o", "PubkeyAuthentication=no"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue