mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
add a -T option for setting ssh timeout in seconds
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user