Check for existing backup directory.
This commit is contained in:
@@ -8,6 +8,11 @@
|
||||
- include_vars: vars/hetzner/secret.yaml
|
||||
- include_vars: vars/hetzner/variable.yaml
|
||||
|
||||
- name: Create backup directory
|
||||
file:
|
||||
path: {{ backup_dir }}
|
||||
state: directory
|
||||
|
||||
- name: Check if directories exist
|
||||
stat:
|
||||
path: "{{ backup_dir }}/{{ item.key }}"
|
||||
|
||||
Reference in New Issue
Block a user