Check new variable.
This commit is contained in:
@@ -110,7 +110,9 @@
|
|||||||
register: oldBackups
|
register: oldBackups
|
||||||
loop: "{{ databases }}"
|
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
|
- name: Find old weekly backups
|
||||||
find:
|
find:
|
||||||
|
|||||||
Reference in New Issue
Block a user