Move rclone to own role

This commit is contained in:
Timo Makinen 2021-09-19 17:08:43 +00:00
parent ffbe68294b
commit 92d8478324
3 changed files with 37 additions and 23 deletions

View file

@ -0,0 +1,10 @@
{{ ansible_managed }}
{% for host in groups[hostgroup] %}
[{{ host.split('.')[0] }}]
type = sftp
host = {{ host }}
user = {{ remote_user }}
key_file = {{ private_key | default('~/.ssh/id_ed25519') }}
known_hosts_file = /etc/ssh/ssh_known_hosts
{% endfor %}