Work around SSH key bug

This commit is contained in:
Joshua Boniface 2023-09-01 15:42:29 -04:00
parent 017e1405ed
commit 94b12794dc
1 changed files with 2 additions and 0 deletions

View File

@ -2,5 +2,7 @@
# {{ ansible_managed }}
{% 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 }}
{% endif %}
{% endfor %}