Use an abspath for network inventory ssh key path.

(cherry picked from commit 1ee511f82c)
pull/33265/head
Matt Clay 8 years ago
parent 51d21b0f41
commit 5fa8480a61

@ -440,7 +440,7 @@ def network_inventory(remotes):
options = dict(
ansible_host=remote.connection.hostname,
ansible_user=remote.connection.username,
ansible_ssh_private_key_file=remote.ssh_key.key,
ansible_ssh_private_key_file=os.path.abspath(remote.ssh_key.key),
ansible_network_os=remote.platform,
ansible_connection='local'
)

Loading…
Cancel
Save