Check deletion of old daily backups.
This commit is contained in:
@@ -109,6 +109,12 @@
|
|||||||
register: oldBackups
|
register: oldBackups
|
||||||
loop: "{{ databases }}"
|
loop: "{{ databases }}"
|
||||||
|
|
||||||
|
- name: Delete old daily backups
|
||||||
|
file:
|
||||||
|
path: "{{ item.path }}"
|
||||||
|
state: absent
|
||||||
|
with_items: "{{ oldBackups.files | list}}"
|
||||||
|
|
||||||
- name: Find old weekly backups
|
- name: Find old weekly backups
|
||||||
find:
|
find:
|
||||||
paths: "{{ backup_dir }}/{{ item }}/weekly"
|
paths: "{{ backup_dir }}/{{ item }}/weekly"
|
||||||
|
|||||||
Reference in New Issue
Block a user