Rework storing of daily backups.
This commit is contained in:
@@ -112,7 +112,10 @@
|
||||
loop: "{{ systems }}"
|
||||
|
||||
- name: Store the daily backup
|
||||
debug: var="{{ item.path | dirname }}"
|
||||
copy:
|
||||
remote_src: true
|
||||
src: "{{ item.path }}"
|
||||
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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user