fix: add support for Proxmox snippets storage configuration and update related paths

This commit is contained in:
2025-12-06 08:08:26 +01:00
parent 6d7fc713a2
commit 15325213ab
5 changed files with 49 additions and 23 deletions

View File

@@ -142,9 +142,9 @@
path: "{{ item }}"
state: absent
loop:
- "/var/lib/vz/snippets/{{ target_vm_id }}-user.yaml"
- "/var/lib/vz/snippets/{{ target_vm_id }}-vendor.yaml"
- "/var/lib/vz/snippets/{{ target_vm_id }}-sshkey.pub"
- "{{ proxmox_snippets_storage_path }}/snippets/{{ target_vm_id }}-user.yaml"
- "{{ proxmox_snippets_storage_path }}/snippets/{{ target_vm_id }}-vendor.yaml"
- "{{ proxmox_snippets_storage_path }}/snippets/{{ target_vm_id }}-sshkey.pub"
when: helper_task == "cleanup_snippets"