Default -u (user) and "user:" in playbooks to the current user.

This commit is contained in:
Michael DeHaan 2012-08-11 17:33:34 -04:00
commit deec50fc3c
2 changed files with 8 additions and 1 deletions

View file

@ -37,6 +37,8 @@ class SSHConnection(object):
def connect(self):
''' connect to the remote host '''
vvv("ESTABLISH CONNECTION FOR USER: %s" % self.runner.remote_user, host=self.host)
self.common_args = []
extra_args = os.getenv("ANSIBLE_SSH_ARGS", None)
if extra_args is not None: