Playing with file filters.
This commit is contained in:
@@ -112,10 +112,8 @@
|
|||||||
loop: "{{ systems }}"
|
loop: "{{ systems }}"
|
||||||
|
|
||||||
- name: Store the daily backup
|
- name: Store the daily backup
|
||||||
debug: var={{ item.path | dirname }}
|
debug: var="{{ item.path | dirname }}"
|
||||||
with_items: "{{ backup_files.results | map(attribute='files') | list }}"
|
with_items: "{{ backup_files.results | map(attribute='files') | list }}"
|
||||||
loop_control:
|
|
||||||
label: {{ item.path | basename }}
|
|
||||||
when: (ansible_date_time.weekday_number != "7" and ansible_date_time.day != "01")
|
when: (ansible_date_time.weekday_number != "7" and ansible_date_time.day != "01")
|
||||||
|
|
||||||
- name: Cleanup original backup files
|
- name: Cleanup original backup files
|
||||||
|
|||||||
Reference in New Issue
Block a user