Playing with variables.
This commit is contained in:
@@ -111,8 +111,8 @@
|
||||
loop: "{{ databases }}"
|
||||
|
||||
- name: Delete old daily backups
|
||||
debug: var=item
|
||||
with_flattened: "{{ oldBackups.results }}"
|
||||
debug: var=path
|
||||
with_items: "{{ oldBackups.results | selectattr('files', 'in', path) | list }}"
|
||||
|
||||
- name: Find old weekly backups
|
||||
find:
|
||||
|
||||
Reference in New Issue
Block a user