Check deletion of old daily backups.

This commit is contained in:
2021-11-18 10:28:56 +01:00
parent 9a0029aa9a
commit 0c6291c9b8

View File

@@ -109,6 +109,12 @@
register: oldBackups
loop: "{{ databases }}"
- name: Delete old daily backups
file:
path: "{{ item.path }}"
state: absent
with_items: "{{ oldBackups.files | list}}"
- name: Find old weekly backups
find:
paths: "{{ backup_dir }}/{{ item }}/weekly"