[ssh_known_hosts] Add hostname to ssh_known_hosts
parent
5661bb4bf6
commit
a40404314f
|
@ -4,6 +4,6 @@
|
|||
{% set cns = query('ldap', 'all_cn', hosts[host].cn[0]) | sort %}
|
||||
{% set ips = query('ldap', 'all_ip', hosts[host].cn[0]) | sort %}
|
||||
{% for key in query('ldap', 'ssh_keys', hosts[host].cn[0]) | sort %}
|
||||
{{ cns | join(',') }},{{ ips | join(',') }} {{ key }} root@{{ hosts[host].cn[0] }}
|
||||
{{ hosts[host].cn[0] }},{{ cns | join(',') }},{{ ips | join(',') }} {{ key }} root@{{ hosts[host].cn[0] }}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in New Issue