Commit e0f12292 by Michael DeHaan

Merge pull request #489 from dhozac/ssh-args-default

Default to using a ControlMaster connection
parents 97cdc7ae 7f6359b1
......@@ -48,6 +48,10 @@ class SSHConnection(object):
extra_args = os.getenv("ANSIBLE_SSH_ARGS", None)
if extra_args is not None:
self.common_args += shlex.split(extra_args)
else:
self.common_args += ["-o", "ControlMaster=auto",
"-o", "ControlPersist=60s",
"-o", "ControlPath=/tmp/ansible-ssh-%h-%p-%r"]
self.userhost = "%s@%s" % (self.runner.remote_user, self.host)
return self
......
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