Work around SSH key bug
This commit is contained in:
parent
0ee5a93b2d
commit
2f1958d50d
|
@ -2,5 +2,7 @@
|
||||||
# {{ ansible_managed }}
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
{% for host in groups[cluster_group] %}
|
{% for host in groups[cluster_group] %}
|
||||||
|
{% if hostvars[host].ansible_ssh_host_key_ed25519_public is defined %}
|
||||||
{{ host }},{{ host.split('.')[0] }}.{{ networks['cluster']['domain'] }},{{ host.split('.')[0] }} ssh-ed25519 {{ hostvars[host].ansible_ssh_host_key_ed25519_public }}
|
{{ host }},{{ host.split('.')[0] }}.{{ networks['cluster']['domain'] }},{{ host.split('.')[0] }} ssh-ed25519 {{ hostvars[host].ansible_ssh_host_key_ed25519_public }}
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in New Issue