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:
label: "{{ item.key }}"
- name: Create storage backups
debug: var=item.key
- name: Backup web directories
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
loop: "{{ lookup('dict', customers) }}"
loop_control: