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