ansible/roles/rclone/templates/rclone.conf.j2

11 lines
244 B
Django/Jinja

# {{ ansible_managed }}
{% for host in groups['sftpbackup'] %}
[{{ host.split('.')[0] }}]
type = sftp
host = {{ host }}
user = backup
shell_type = none
key_file = /etc/rclone/id_ed25519
known_hosts_file = /etc/ssh/ssh_known_hosts
{% endfor %}