Use absolute path for identityfile in ssh config

This commit is contained in:
Dan Hughes 2020-02-04 22:00:55 +00:00
parent 027b1b8497
commit e595f2f921
No known key found for this signature in database
GPG key ID: 60D7AE3919F16B1C

View file

@ -32,7 +32,7 @@
HostName {{ IP_subject_alt_name }} HostName {{ IP_subject_alt_name }}
User {{ ansible_ssh_user }} User {{ ansible_ssh_user }}
Port {{ ansible_ssh_port }} Port {{ ansible_ssh_port }}
IdentityFile {{ SSH_keys.private }} IdentityFile {{ SSH_keys.private | realpath }}
KeepAlive yes KeepAlive yes
ServerAliveInterval 30 ServerAliveInterval 30
when: inventory_hostname != 'localhost' when: inventory_hostname != 'localhost'