mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Use an abspath for network inventory ssh key path.
This commit is contained in:
@@ -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'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user