Check for existing backup directory.

This commit is contained in:
2021-11-21 22:04:55 +01:00
parent 80a803d9e2
commit 62388637fc

View File

@@ -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 }}"