Undo debugging of variable.

This commit is contained in:
2021-11-21 17:40:10 +01:00
parent ace91d73fd
commit c4aec1207a

View File

@@ -10,20 +10,18 @@
- name: Check if directories exist
stat:
path: "{{ backup_dir }}/{{ item }}"
path: "{{ backup_dir }}/{{ item.key }}"
register: dirs
loop: "{{ lookup('dict', customers) }}"
loop_control:
label: "{{ item.key }}"
- debug: var=dirs
# - name: Create not existing directories
# file:
# path: "{{ backup_dir }}/{{ item.item }}"
# state: directory
# mode: 0755
# when: item.stat.exists == false
# with_items: "{{ dirs.results }}"
# loop_control:
# label: "{{ item.item }}"
- name: Create not existing directories
file:
path: "{{ backup_dir }}/{{ item.item }}"
state: directory
mode: 0755
when: item.stat.exists == false
with_items: "{{ dirs.results }}"
loop_control:
label: "{{ item.item }}"