ansible/ansible — pull request #858 by dsummersl (2012-08-13 16:45:24+00:00)
Title: Don't explicitly set SSH Port if it is the default (so it can be overrid...

Hello,

This is a fix for the SSH connection type - by default it sends a '-o Port=22' along to the ssh command which has the unfortunate side affect of overriding any Port setting one might have setup in an ssh-config file and passed to ansible via ANSIBLE_SSH_ARGS (ie, ANSIBLE_SSH_ARGS='-F some-ssh-config' ansible ...). Since the default is already port 22, this fix suppresses '-o Port=22' unless the connection is actually using a non-standard port.

Thanks,

Dane