Add hostname to known_host file on bastion
Change-Id: Icc2bec0da5dbe26356dd4bf2e6f89149b2797dda Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
1d490a3729
commit
66ccfe7744
|
@ -4,7 +4,7 @@
|
|||
{% for host in groups['all'] %}
|
||||
{% if hostvars[host].ansible_host is defined %}
|
||||
{% if hostvars[host].ansible_ssh_host_key_ed25519_public is defined %}
|
||||
{{ hostvars[host].ansible_host }} ssh-ed25519 {{ hostvars[host].ansible_ssh_host_key_ed25519_public }}
|
||||
{{ hostvars[host].ansible_hostname }},{{ hostvars[host].ansible_host }} ssh-ed25519 {{ hostvars[host].ansible_ssh_host_key_ed25519_public }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in New Issue