mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-06 00:14:02 -07:00
add a -T option for setting ssh timeout in seconds
This commit is contained in:
parent
2773234c3f
commit
d15172abdc
2 changed files with 4 additions and 1 deletions
|
@ -117,7 +117,7 @@ class Runner(object):
|
|||
try:
|
||||
# try paramiko
|
||||
ssh.connect(host, username=self.remote_user, allow_agent=True,
|
||||
look_for_keys=True, password=self.remote_pass)
|
||||
look_for_keys=True, password=self.remote_pass timeout=self.timeout)
|
||||
return [ True, ssh ]
|
||||
except Exception, e:
|
||||
# it failed somehow, return the failure string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue