Check loop over dict.
This commit is contained in:
@@ -9,6 +9,12 @@
|
||||
- include_vars: vars/secret.yaml
|
||||
- include_vars: vars/variable.yaml
|
||||
|
||||
- name: Backup container volumes
|
||||
debug: var=item
|
||||
loop: "{{ lookup('dict', volumes) }}"
|
||||
loop_control:
|
||||
label: "{{ item.key }}"
|
||||
|
||||
- name: Check if directories exist
|
||||
stat:
|
||||
path: "{{ backup_dir }}/{{ item }}"
|
||||
|
||||
Reference in New Issue
Block a user