diff --git a/odroid.yaml b/odroid.yaml index db9fc36..e3147fc 100644 --- a/odroid.yaml +++ b/odroid.yaml @@ -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")