ssh_config.j2 193 Bytes
Newer Older
1
{% for host in hostvars.values() | map(attribute='ansible_hostname') | sort %}
Yifan Xiong's avatar
Yifan Xiong committed
2
Host {{ host }}
3
4
5
6
    Port {{ ssh_port }}
    IdentityFile /root/.ssh/key
    StrictHostKeyChecking no
{% endfor %}