Files
ansible/roles/restic/tasks/remove_borg.yml
2024-07-05 11:53:33 +02:00

25 lines
454 B
YAML

---
- name: Remove borg packet
ansible.builtin.package:
name: borgbackup
state: absent
- name: Remove borg script
ansible.builtin.file:
path: /usr/local/bin/borgbackup.sh
state: absent
- name: Remove cache dirs
ansible.builtin.file:
path: "{{ item }}"
state: absent
loop:
- "/root/.cache/borg"
- "/root/.config/borg"
- name: Remove cron
ansible.builtin.cron:
name: "borg backup script"
state: absent