Undo debugging of variable.
This commit is contained in:
22
hetzner.yaml
22
hetzner.yaml
@@ -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 }}"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user