Add hostname to known_host file on bastion

Change-Id: Icc2bec0da5dbe26356dd4bf2e6f89149b2797dda
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2019-03-15 13:30:01 -04:00
parent 1d490a3729
commit 66ccfe7744
1 changed files with 1 additions and 1 deletions

View File

@ -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 %}