From 8082728c6e39b69c4b5d2f2e519c8b7dda2dca63 Mon Sep 17 00:00:00 2001 From: Jose Date: Sat, 6 Dec 2025 09:25:17 +0100 Subject: [PATCH] fix: enhance regex for enabling 'snippets' in Proxmox storage configuration --- tasks/preflight-checks.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tasks/preflight-checks.yml b/tasks/preflight-checks.yml index 5856322..9153fa6 100644 --- a/tasks/preflight-checks.yml +++ b/tasks/preflight-checks.yml @@ -162,10 +162,15 @@ - name: "[PREFLIGHT] Ensure 'snippets' is enabled for {{ proxmox_snippets_storage }}" ansible.builtin.lineinfile: path: /etc/pve/storage.cfg - insertafter: "^dir: {{ proxmox_snippets_storage }}$" - regexp: '^\s*content\s+.*(?,snippets' + regexp: '^(\s*content\s+.*)(?