10 lines
222 B
Django/Jinja
10 lines
222 B
Django/Jinja
# {{ ansible_managed }}
|
|
{% for host in groups['webservers'] %}
|
|
|
|
[{{ host.split('.')[0] }}]
|
|
type = sftp
|
|
host = {{ host }}
|
|
user = logsync
|
|
key_file = ~/.ssh/id_ed25519
|
|
known_hosts_file = /etc/ssh/ssh_known_hosts
|
|
{% endfor %}
|