tripleo-common/roles/tripleo-ssh-known-hosts/templates/ssh_known_hosts.j2
James Slagle d45c47c050 Use ansible_hostname
ansible_nodename is a fqdn, whereas Heat is using the short hostname to
construct the ssh_known_hosts value. Switch to using ansible_hostname so
that the correct values will be found when looking up ssh_known_hosts.

Change-Id: Ic5e68f236ac35295647769d20e971cf71ea29134
2018-03-07 13:55:23 -05:00

4 lines
169 B
Django/Jinja

{% for host in groups['overcloud'] %}
{{ ssh_known_hosts[hostvars[host]['ansible_hostname']] + ' ' + hostvars[host]['ansible_ssh_host_key_ecdsa_public'] }}
{% endfor %}