Extend directories to all containers that must be backed up.
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
stat:
|
||||
path: "{{ backup_dir }}/{{ item }}"
|
||||
register: dirs
|
||||
loop: "{{ databases }}"
|
||||
loop: "{{ systems }}"
|
||||
|
||||
- name: Create not existing directories
|
||||
file:
|
||||
@@ -44,7 +44,7 @@
|
||||
path: "{{ backup_dir }}/{{ item[0] }}/{{ item[1] }}"
|
||||
register: subdirs
|
||||
with_nested:
|
||||
- "{{ databases }}"
|
||||
- "{{ systems }}"
|
||||
- ['daily', 'weekly', 'monthly', 'yearly']
|
||||
loop_control:
|
||||
label: "{{ item[0] }} {{ item[1] }}"
|
||||
|
||||
Reference in New Issue
Block a user