Allows delegate_to to use inventory host/port info.

This commit is contained in:
Michael DeHaan
2012-10-16 20:57:37 -04:00
parent 8c3abe7e52
commit a69e59ab2b
3 changed files with 23 additions and 5 deletions

View File

@@ -53,7 +53,7 @@ class Connection(object):
user = self.runner.remote_user
vvv("ESTABLISH CONNECTION FOR USER: %s" % user, host=self.host)
vvv("ESTABLISH CONNECTION FOR USER: %s on PORT %s TO %s" % (user, self.port, self.host), host=self.host)
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())