ssh_config.j2 228 Bytes
Newer Older
1
2
3
4
5
6
7
{% for host in hostvars.values() | map(attribute='ansible_hostname') | sort %}
Host node{{ loop.index0 }}
    HostName {{ host }}
    Port {{ ssh_port }}
    IdentityFile /root/.ssh/key
    StrictHostKeyChecking no
{% endfor %}