modified: tasks/preflight-checks.yml
This commit is contained in:
@@ -30,10 +30,10 @@
|
|||||||
msg: "Proxmox Version: {{ qm_version.stdout }}"
|
msg: "Proxmox Version: {{ qm_version.stdout }}"
|
||||||
|
|
||||||
- name: "[PREFLIGHT] Verify storage pool exists"
|
- 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
|
changed_when: false
|
||||||
failed_when: false
|
|
||||||
register: storage_check
|
register: storage_check
|
||||||
|
failed_when: storage_check.rc != 0
|
||||||
|
|
||||||
- name: "[PREFLIGHT] Fail if storage not found"
|
- name: "[PREFLIGHT] Fail if storage not found"
|
||||||
ansible.builtin.fail:
|
ansible.builtin.fail:
|
||||||
|
|||||||
Reference in New Issue
Block a user