Fix ssh_known_hosts format

The template is missing the key type.

Change-Id: I9cd43e933d6e5963f8da52f1821f11841920ec21
Closes-bug: #1781027
This commit is contained in:
Oliver Walsh 2018-07-10 19:22:48 +01:00
parent 8e8dabdfd1
commit 82b4a0cee1

View File

@ -1,3 +1,3 @@
{% for host in groups['overcloud'] %}
{{ ssh_known_hosts[hostvars[host]['ansible_hostname']] + ' ' + hostvars[host]['ansible_ssh_host_key_ecdsa_public'] }}
{{ ssh_known_hosts[hostvars[host]['ansible_hostname']] + ' ssh-rsa ' + hostvars[host]['ansible_ssh_host_key_rsa_public'] }}
{% endfor %}