rclone: Migrate to use backup_base role
This commit is contained in:
parent
5e5ebf937c
commit
db996daf14
2 changed files with 10 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
---
|
---
|
||||||
dependencies:
|
dependencies:
|
||||||
- {role: backup_server}
|
- {role: backup_base}
|
||||||
- {role: ssh_known_hosts}
|
- {role: ssh_known_hosts}
|
||||||
|
|
|
@ -58,6 +58,15 @@
|
||||||
owner: backup
|
owner: backup
|
||||||
group: 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
|
- name: Copy rclone sync script
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
dest: /usr/local/bin/rclone-sync
|
dest: /usr/local/bin/rclone-sync
|
||||||
|
|
Loading…
Add table
Reference in a new issue