Reduce loop variable.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user