fix 🐛: Ensure snippets storage is enabled

This commit updates the `tasks/testing.yml` file to correctly enable the 'snippets' storage for Proxmox. The change ensures that the snippets storage directory is properly configured, resolving an issue where snippets were not being utilized. This update improves the Proxmox setup process and ensures snippets functionality.
This commit is contained in:
2025-12-09 19:28:06 +01:00
parent fdc28ae4a6
commit ccb9fc760c

View File

@@ -13,12 +13,11 @@
- name: "[PREFLIGHT] Ensure 'snippets' is enabled for {{ proxmox_snippets_storage }}"
ansible.builtin.replace:
path: /etc/pve/storage.cfg
regexp: '^(\s*content\s*=.*?)(?<!snippets)$'
regexp: '(?ms)(dir:\s*{{ proxmox_snippets_storage }}.*?content\s*=.*?)(?<!snippets)$'
replace: '\1,snippets'
multiline: true
vars:
proxmox_snippets_storage: local
- name: "[PREFLIGHT] Ensure snippets storage directory exists"
ansible.builtin.file:
path: "{{ proxmox_snippets_storage_path }}/snippets"