feat: add restic role and pb
This commit is contained in:
24
roles/restic/tasks/remove_borg.yml
Normal file
24
roles/restic/tasks/remove_borg.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
---
|
||||
|
||||
- name: remove borg packet
|
||||
package:
|
||||
name: borgbackup
|
||||
state: absent
|
||||
|
||||
- name: remove borg script
|
||||
file:
|
||||
path: /usr/local/bin/borgbackup.sh
|
||||
state: absent
|
||||
|
||||
- name: remove cache dirs
|
||||
file:
|
||||
path: "{{ item }}"
|
||||
state: absent
|
||||
loop:
|
||||
- "/root/.cache/borg"
|
||||
- "/root/.config/borg"
|
||||
|
||||
- name: remove cron
|
||||
cron:
|
||||
name: "borg backup script"
|
||||
state: absent
|
Reference in New Issue
Block a user