rclone: Migrate to use backup_base role

This commit is contained in:
Timo Makinen 2024-06-22 19:10:18 +00:00
parent 5e5ebf937c
commit db996daf14
2 changed files with 10 additions and 1 deletions

View file

@ -1,4 +1,4 @@
---
dependencies:
- {role: backup_server}
- {role: backup_base}
- {role: ssh_known_hosts}

View file

@ -58,6 +58,15 @@
owner: backup
group: backup
- name: Create backup directories
ansible.builtin.file:
path: "/srv/backup/{{ item }}"
state: directory
mode: "0770"
owner: root
group: backup
with_items: "{{ groups['sftpbackup'] }}"
- name: Copy rclone sync script
ansible.builtin.copy:
dest: /usr/local/bin/rclone-sync