Files
tripleo-common/roles/tripleo-ssh-known-hosts/templates/ssh_known_hosts.j2
Oliver Walsh 82b4a0cee1 Fix ssh_known_hosts format
The template is missing the key type.

Change-Id: I9cd43e933d6e5963f8da52f1821f11841920ec21
Closes-bug: #1781027
2018-07-10 19:47:45 +01:00

4 lines
175 B
Django/Jinja

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