Commit e6f175e9 by Michael DeHaan

Allow the SSH timeout to be passed to playbooks just like it already could with /usr/bin/ansible

parent e3b4981f
......@@ -78,6 +78,8 @@ def main(args):
help="ask for SSH password")
parser.add_option("-M", "--module-path", dest="module_path",
help="path to module library", default=C.DEFAULT_MODULE_PATH)
parser.add_option('-T', '--timeout', default=C.DEFAULT_TIMEOUT, type='int',
dest='timeout', help="set the SSH timeout in seconds")
options, args = parser.parse_args(args)
......@@ -98,7 +100,8 @@ def main(args):
forks=options.forks,
verbose=True,
remote_pass=sshpass,
callbacks=PlaybookCallbacks()
callbacks=PlaybookCallbacks(),
timeout=options.timeout
)
try:
pb.run()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment