Backup web directories.

This commit is contained in:
2021-11-22 07:32:14 +01:00
parent e37699d9e0
commit f68bfe9f23

View File

@@ -21,8 +21,8 @@
loop_control: loop_control:
label: "{{ item.key }}" label: "{{ item.key }}"
- name: Create storage backups - name: Backup web directories
debug: var=item.key shell: tar cvfz {{ backup_dir }}/{{ item.key }}/web-{{ ansible_date_time.iso8601_basic_short }}.tar.gz {{ item. value.storage }}
when: item.value.storage is defined when: item.value.storage is defined
loop: "{{ lookup('dict', customers) }}" loop: "{{ lookup('dict', customers) }}"
loop_control: loop_control: