Backup web directories.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user