Reduce loop variable.

This commit is contained in:
2021-11-19 11:52:30 +01:00
parent 42e9aa2515
commit d42f859743

View File

@@ -118,6 +118,8 @@
dest: "{{ item.path | dirname }}/daily/{{ item.path | basename }}"
with_items: "{{ backup_files.results | map(attribute='files') | list }}"
when: (ansible_date_time.weekday_number != "7" and ansible_date_time.day != "01")
loop_control:
label: "{{ item.path }}"
- name: Cleanup original backup files
file: