diff --git a/odroid.yaml b/odroid.yaml index dab9994..c2975c8 100644 --- a/odroid.yaml +++ b/odroid.yaml @@ -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"