mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Implemented deletion of not fully pulled backups
This commit is contained in:
26
roles/server_native-backups-consumer/tasks/main.yml
Normal file
26
roles/server_native-backups-consumer/tasks/main.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
- name: "create {{docker_pull_primary_backups_folder}}"
|
||||
file:
|
||||
path: "{{docker_pull_primary_backups_folder}}"
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: create pull-remote-backup.sh
|
||||
copy:
|
||||
src: pull-remote-backup.sh
|
||||
dest: "{{docker_pull_primary_backups_folder}}pull-remote-backup.sh"
|
||||
mode: 0755
|
||||
|
||||
- name: create pull-remote-backups.service
|
||||
template: src=pull-remote-backups.service.j2 dest=/etc/systemd/system/pull-remote-backups.service
|
||||
notify: reload pull-remote-backups service
|
||||
|
||||
- name: create pull-remote-backups.timer
|
||||
template: src=pull-remote-backups.timer.j2 dest=/etc/systemd/system/pull-remote-backups.timer
|
||||
notify: restart pull-remote-backups timer
|
||||
|
||||
- name: create pull-remote-backups.sh
|
||||
template:
|
||||
src: pull-remote-backups.sh.j2
|
||||
dest: "{{docker_pull_primary_backups_folder}}pull-remote-backups.sh"
|
||||
mode: 0755
|
||||
|
Reference in New Issue
Block a user