Check deletion of old daily backups.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user