fix: search using whitespaces for quorum check
This commit is contained in:
@@ -36,7 +36,7 @@
|
|||||||
- name: Abort if cluster has no quorum
|
- name: Abort if cluster has no quorum
|
||||||
ansible.builtin.fail:
|
ansible.builtin.fail:
|
||||||
msg: "Cluster quorum not available"
|
msg: "Cluster quorum not available"
|
||||||
when: "'Quorate: Yes' not in quorum_status.stdout"
|
when: quorum_status.stdout is not search('Quorate:\\s*Yes')
|
||||||
|
|
||||||
- name: Check Ceph health
|
- name: Check Ceph health
|
||||||
ansible.builtin.command: ceph health
|
ansible.builtin.command: ceph health
|
||||||
|
|||||||
Reference in New Issue
Block a user