Fix ssh_known_hosts format

The template is missing the key type.

Change-Id: I9cd43e933d6e5963f8da52f1821f11841920ec21
Closes-bug: #1781027
(cherry picked from commit 82b4a0cee1)
This commit is contained in:
Oliver Walsh 2018-07-10 19:22:48 +01:00 committed by James Slagle
parent 48a0a20ee2
commit 121e6b054a

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