add support for using an alternate remote port

This commit is contained in:
Christopher Johnston 2012-03-28 14:05:31 -07:00
parent 9777653741
commit f06ec76fdb
5 changed files with 17 additions and 10 deletions

View file

@ -65,7 +65,8 @@ class ParamikoConnection(object):
allow_agent=True,
look_for_keys=True,
password=self.runner.remote_pass,
timeout=self.runner.timeout
timeout=self.runner.timeout,
port=self.runner.remote_port
)
except Exception, e:
raise errors.AnsibleConnectionFailed(str(e))