Move from debugging to deletion.
This commit is contained in:
@@ -111,7 +111,9 @@
|
|||||||
loop: "{{ databases }}"
|
loop: "{{ databases }}"
|
||||||
|
|
||||||
- name: Delete old daily backups
|
- name: Delete old daily backups
|
||||||
debug: var=item.path
|
file:
|
||||||
|
path: "{{ item.path }}"
|
||||||
|
state: absent
|
||||||
with_items: "{{ oldBackups.results | map(attribute='files') | list }}"
|
with_items: "{{ oldBackups.results | map(attribute='files') | list }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.path }}"
|
label: "{{ item.path }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user