Use an abspath for network inventory ssh key path.
This commit is contained in:
parent
9de76693b7
commit
1ee511f82c
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue