ansible/ansible — pull request #509 by dsummersl (2012-06-26 16:43:13+00:00)
Title: support complete username/port/ssh_config (ie, -F ssh_config) configurat...

I wanted the ability to control the port/username/etc settings from outside of ansible. I modified the 'ssh' connection to support this ability:

* if you specify ANSIBLE_SSH_ARGS then ansible will not supply user/port to the ssh commands.

Users can then control these themselves. For instance:

* ANSIBLE_SSH_ARGS="-F my_ssh_config" ansible all -c ssh -i ansiblefile -a uname
* ANSIBLE_SSH_ARGS="-o Port=1234 -o IdentityFile=~/.ssh/x.private -o User=admin" ansible all -c ssh -i
ansiblefile -a uname
* ANSIBLE_SSH_ARGS="-o ProxyCommand=..." ansible all -c ssh -i
ansiblefile -a uname