Extend strato-production to fetch backups.
This commit is contained in:
@@ -36,6 +36,15 @@
|
||||
shell: gzip {{ backup_dir }}/{{ item }}/db-{{ ansible_date_time.iso8601_basic_short }}.sql
|
||||
loop: "{{ databases }}"
|
||||
|
||||
- name: Fetch database backups
|
||||
fetch:
|
||||
src: "{{ backup_dir }}/{{ item.key }}/db-{{ ansible_date_time.iso8601_basic_short }}.sql.gz"
|
||||
dest: "{{ local_backup }}/{{ item.key }}/"
|
||||
flat: yes
|
||||
loop: "{{ lookup('dict', customers) }}"
|
||||
loop_control:
|
||||
label: "{{ item.key }}"
|
||||
|
||||
- name: Inform Mattermost about success
|
||||
uri:
|
||||
url: "{{ mattermost_url }}"
|
||||
|
||||
Reference in New Issue
Block a user