Use an abspath for network inventory ssh key path.

This commit is contained in:
Matt Clay 2017-11-22 10:28:09 -08:00
parent 9de76693b7
commit 1ee511f82c

View file

@ -441,7 +441,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'
)