pvc-ansible/roles/base/templates/etc/ssh/ssh_known_hosts.j2

9 lines
354 B
Plaintext
Raw Permalink Normal View History

2023-09-01 15:42:19 -04:00
# SSH remote allowed hosts
# {{ ansible_managed }}
{% for host in groups[cluster_group] %}
2023-09-01 15:42:29 -04:00
{% 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 }}
2023-09-01 15:42:29 -04:00
{% endif %}
{% endfor %}