Fixed identity key logic.

This commit is contained in:
Timothy Appnel 2013-07-11 20:08:46 -04:00
parent 9f170f579a
commit adbca9d251
2 changed files with 8 additions and 10 deletions

View file

@ -77,12 +77,11 @@ class ActionModule(object):
if not dest_host is src_host:
user = inject.get('ansible_ssh_user',
self.runner.remote_user)
# should we support ssh_password and ssh_port here??
options['private_key'] = \
private_key = \
inject.get('ansible_ssh_private_key_file',
self.runner.private_key_file)
if not private_key is None:
options['private_key'] = private_key
src = self._process_origin(src_host, src, user)
dest = self._process_origin(dest_host, dest, user)