Commit 2529407d authored by Jupiter Hu's avatar Jupiter Hu
Browse files

Reinstall known_hosts.j2

parent 79ea977a
......@@ -7,7 +7,7 @@
{% if nodelist.append(host) %}
{% endif %}
{% endif %}
{% if ansible_ssh_host_key_ecdsa_public is defined and if hostvars[node]['ansible_ssh_host_key_ecdsa_public'] %}
{% if hostvars[node]['ansible_ssh_host_key_ecdsa_public'] %}
#{% set host = {'name': node, 'ip': hostvars[node]['ansible_'+interface]['ipv4']['address'], 'keytype':'ssh-ecdsa', 'key': hostvars[node]['ansible_ssh_host_key_ecdsa_public']} %}
{% set host = {'name': node, 'ip': hostvars[node]['ansible_'+interface]['ipv4']['address'], 'keytype':'ecdsa-sha2-nistp256', 'key': hostvars[node]['ansible_ssh_host_key_ecdsa_public']} %}
{% if nodelist.append(host) %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment