modified: tasks/preflight-checks.yml

This commit is contained in:
2025-12-01 21:13:23 +01:00
parent 63e29b4290
commit c0ee2e5358

View File

@@ -30,10 +30,10 @@
msg: "Proxmox Version: {{ qm_version.stdout }}"
- name: "[PREFLIGHT] Verify storage pool exists"
ansible.builtin.command: "pvesm status {{ storage }}"
ansible.builtin.shell: "pvesm status | awk '{print $1}' | grep -w {{ storage }}"
changed_when: false
failed_when: false
register: storage_check
failed_when: storage_check.rc != 0
- name: "[PREFLIGHT] Fail if storage not found"
ansible.builtin.fail: