ansible/ansible — pull request #745 by willthames (2012-08-01 06:16:06+00:00)
Title: Allowed ssh to determine username and port from ~/.ssh/config

The motivation for this is that having the root be the default user is not realistic for most use cases (in my opinion noone should ever ssh as root).
However, that aside, encoding a username in a playbook is not good when sharing cookbooks
And typing -u every command becomes onerous.

The changes here use .ssh/config to determine ports and users to use on a per host basis (as that is the most sensible scenario)

default username is still root (where not overridden by command line variable) so the default behaviour should not change for most users (except perhaps those that want to ssh as root but have User set in .ssh/config)

Having seen the email regarding the 0.6 freeze, if you want to leave this until 0.7 then that's understood - this isn't as trivial as some of my previous changes.