Extend directories to all containers that must be backed up.

This commit is contained in:
2021-11-19 06:47:42 +01:00
parent 95c04c24d3
commit 57dfc93272

View File

@@ -13,7 +13,7 @@
stat: stat:
path: "{{ backup_dir }}/{{ item }}" path: "{{ backup_dir }}/{{ item }}"
register: dirs register: dirs
loop: "{{ databases }}" loop: "{{ systems }}"
- name: Create not existing directories - name: Create not existing directories
file: file:
@@ -44,7 +44,7 @@
path: "{{ backup_dir }}/{{ item[0] }}/{{ item[1] }}" path: "{{ backup_dir }}/{{ item[0] }}/{{ item[1] }}"
register: subdirs register: subdirs
with_nested: with_nested:
- "{{ databases }}" - "{{ systems }}"
- ['daily', 'weekly', 'monthly', 'yearly'] - ['daily', 'weekly', 'monthly', 'yearly']
loop_control: loop_control:
label: "{{ item[0] }} {{ item[1] }}" label: "{{ item[0] }} {{ item[1] }}"