fix: refine content extraction for Proxmox snippets storage configuration

This commit is contained in:
2025-12-06 08:44:42 +01:00
parent 8c031a915d
commit 1a0af3b6e6

View File

@@ -171,7 +171,7 @@
- name: "[PREFLIGHT] Get current content list of the target storage"
ansible.builtin.shell: >
awk '/^dir: {{ proxmox_snippets_storage }}/,/^$/' /etc/pve/storage.cfg |
awk '/content/ {print $3}'
awk '/content/ {sub(/^content[[:space:]]*/, ""); print}'
register: current_content
changed_when: false