Fetch can't work on src directories.
This commit is contained in:
@@ -36,9 +36,12 @@
|
|||||||
|
|
||||||
- name: Fetch backups
|
- name: Fetch backups
|
||||||
fetch:
|
fetch:
|
||||||
src: "{{ backup_dir }}"
|
src: "{{ backup_dir }}/{{ item.key }}/db-{{ ansible_date_time.iso8601_basic_short }}.sql.gz"
|
||||||
dest: "{{ local_backup }}/"
|
dest: "{{ local_backup }}/{{ item.key }}/"
|
||||||
flat: yes
|
flat: yes
|
||||||
|
loop: "{{ lookup('dict', customers) }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.key }}"
|
||||||
|
|
||||||
- name: Clean backup directory
|
- name: Clean backup directory
|
||||||
file:
|
file:
|
||||||
|
|||||||
Reference in New Issue
Block a user