From 12fdeae51400174f910ad6d53df3ff6fa16eeaf9 Mon Sep 17 00:00:00 2001 From: Jose Date: Tue, 2 Dec 2025 20:56:42 +0100 Subject: [PATCH] Add task to ensure snippets storage directory exists --- tasks/preflight-checks.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks/preflight-checks.yml b/tasks/preflight-checks.yml index c874cd0..aae429b 100644 --- a/tasks/preflight-checks.yml +++ b/tasks/preflight-checks.yml @@ -133,6 +133,12 @@ loop: "{{ dns }}" when: dns is defined and dns | length > 0 +- name: "[PREFLIGHT] Ensure snippets storage exists" + ansible.builtin.file: + path: "/var/lib/vz/snippets" + state: directory + mode: "0755" + - name: "[PREFLIGHT] Check snippets storage exists" ansible.builtin.stat: path: "/var/lib/vz/snippets"