From 19b568c2b8c2fd41cccbb53523ecf4ef4f0167ae Mon Sep 17 00:00:00 2001 From: Jose Date: Mon, 8 Dec 2025 10:43:15 +0100 Subject: [PATCH] =?UTF-8?q?fix=20=F0=9F=90=9B:=20Enable=20snippets=20in=20?= =?UTF-8?q?storage.cfg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit enables the 'snippets' feature in the Proxmox storage configuration file. It achieves this by adding a snippet line to the storage.cfg, ensuring that Proxmox snippets are available. Additionally, it creates the necessary 'snippets' directory within the specified storage path. --- tasks/testing.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tasks/testing.yml b/tasks/testing.yml index c6adecc..9ca3b3d 100644 --- a/tasks/testing.yml +++ b/tasks/testing.yml @@ -10,6 +10,24 @@ state: present update_cache: yes + + - name: "[PREFLIGHT] Ensure 'snippets' is enabled for {{ proxmox_snippets_storage }}" + ansible.builtin.replace: + path: /etc/pve/storage.cfg + regexp: '(dir:\s*{{ proxmox_snippets_storage }}[\s\S]*?content\s+)(.*)(?