[ssh_known_hosts] Add hostname to ssh_known_hosts

certbot_on_virtu
_benjamin 2021-02-25 14:50:57 +01:00
parent 5661bb4bf6
commit a40404314f
1 changed files with 1 additions and 1 deletions

View File

@ -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 %}