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
This commit is contained in:
parent
f746ad472f
commit
d45c47c050
@ -1,3 +1,3 @@
|
||||
{% for host in groups['overcloud'] %}
|
||||
{{ ssh_known_hosts[hostvars[host]['ansible_nodename']] + ' ' + hostvars[host]['ansible_ssh_host_key_ecdsa_public'] }}
|
||||
{{ ssh_known_hosts[hostvars[host]['ansible_hostname']] + ' ' + hostvars[host]['ansible_ssh_host_key_ecdsa_public'] }}
|
||||
{% endfor %}
|
||||
|
Loading…
Reference in New Issue
Block a user