rclone: Make role more modular
This commit is contained in:
parent
c3497c2440
commit
338f4e2f0d
4 changed files with 42 additions and 29 deletions
|
@ -1,11 +1,11 @@
|
|||
# {{ ansible_managed }}
|
||||
{% for host in groups['sftpbackup'] %}
|
||||
{% for host in groups[rclone_hostgroup | default(rclone_service)] %}
|
||||
|
||||
[{{ host.split('.')[0] }}]
|
||||
type = sftp
|
||||
host = {{ host }}
|
||||
user = backup
|
||||
user = {{ rclone_service }}
|
||||
shell_type = none
|
||||
key_file = /etc/rclone/id_ed25519
|
||||
key_file = /etc/rclone/ssh_{{ rclone_service }}_ed25519_key
|
||||
known_hosts_file = /etc/ssh/ssh_known_hosts
|
||||
{% endfor %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue