fix: refine content extraction for Proxmox snippets storage configuration
This commit is contained in:
@@ -171,7 +171,7 @@
|
|||||||
- name: "[PREFLIGHT] Get current content list of the target storage"
|
- name: "[PREFLIGHT] Get current content list of the target storage"
|
||||||
ansible.builtin.shell: >
|
ansible.builtin.shell: >
|
||||||
awk '/^dir: {{ proxmox_snippets_storage }}/,/^$/' /etc/pve/storage.cfg |
|
awk '/^dir: {{ proxmox_snippets_storage }}/,/^$/' /etc/pve/storage.cfg |
|
||||||
awk '/content/ {print $3}'
|
awk '/content/ {sub(/^content[[:space:]]*/, ""); print}'
|
||||||
register: current_content
|
register: current_content
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user