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 - name: Check if directories exist
stat: stat:
path: "{{ backup_dir }}/{{ item }}" path: "{{ backup_dir }}/{{ item.key }}"
register: dirs register: dirs
loop: "{{ lookup('dict', customers) }}" loop: "{{ lookup('dict', customers) }}"
loop_control: loop_control:
label: "{{ item.key }}" label: "{{ item.key }}"
- debug: var=dirs - name: Create not existing directories
file:
# - name: Create not existing directories path: "{{ backup_dir }}/{{ item.item }}"
# file: state: directory
# path: "{{ backup_dir }}/{{ item.item }}" mode: 0755
# state: directory when: item.stat.exists == false
# mode: 0755 with_items: "{{ dirs.results }}"
# when: item.stat.exists == false loop_control:
# with_items: "{{ dirs.results }}" label: "{{ item.item }}"
# loop_control:
# label: "{{ item.item }}"