diff --git a/odroid.yaml b/odroid.yaml index 1731e36..593ef47 100644 --- a/odroid.yaml +++ b/odroid.yaml @@ -110,7 +110,9 @@ register: oldBackups loop: "{{ databases }}" - - debug: var=oldBackups + - name: Delete old daily backups + debug: var=item.path + with_items: "{{ (oldBackups.files | sort(attribute='ctime'))[:-10] | list }}" - name: Find old weekly backups find: