# {{ 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 %}