Check directory variable.
This commit is contained in:
20
hetzner.yaml
20
hetzner.yaml
@@ -16,12 +16,14 @@
|
|||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.key }}"
|
label: "{{ item.key }}"
|
||||||
|
|
||||||
- name: Create not existing directories
|
- debug: var=dirs
|
||||||
file:
|
|
||||||
path: "{{ backup_dir }}/{{ item.item }}"
|
# - name: Create not existing directories
|
||||||
state: directory
|
# file:
|
||||||
mode: 0755
|
# path: "{{ backup_dir }}/{{ item.item }}"
|
||||||
when: item.stat.exists == false
|
# state: directory
|
||||||
with_items: "{{ dirs.results }}"
|
# mode: 0755
|
||||||
loop_control:
|
# when: item.stat.exists == false
|
||||||
label: "{{ item.item }}"
|
# with_items: "{{ dirs.results }}"
|
||||||
|
# loop_control:
|
||||||
|
# label: "{{ item.item }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user