mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-01 23:01:27 -07:00
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(
|
options = dict(
|
||||||
ansible_host=remote.connection.hostname,
|
ansible_host=remote.connection.hostname,
|
||||||
ansible_user=remote.connection.username,
|
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_network_os=remote.platform,
|
||||||
ansible_connection='local'
|
ansible_connection='local'
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue