Adding ability to set ssh args from config file

This commit is contained in:
Michael DeHaan 2012-08-14 20:13:02 -04:00
commit 9851066f4d
3 changed files with 17 additions and 2 deletions

View file

@ -66,3 +66,16 @@ remote_port=22
#private_key_file=/path/to/file
[paramiko_connection]
# nothing to configure yet
[ssh_connection]
# if uncommented, sets the ansible ssh arguments to the following. Leaving off ControlPersist
# will result in poor performance, so use transport=paramiko on older platforms rather than
# removing it
ssh_args=-o ControlMaster=auto -o ControlPersist=60s -o ControlPath=/tmp/ansible-ssh-%h-%p-%r