Check new variable.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user