diff --git a/roles/cifmw_cephadm/tasks/ceph_upgrade.yml b/roles/cifmw_cephadm/tasks/ceph_upgrade.yml index 31b8f33872..a2982cdf10 100644 --- a/roles/cifmw_cephadm/tasks/ceph_upgrade.yml +++ b/roles/cifmw_cephadm/tasks/ceph_upgrade.yml @@ -18,12 +18,15 @@ ansible.builtin.set_fact: ceph_health: "{{ ceph.stdout | from_json }}" -- name: Fail if health is HEALTH_WARN || HEALTH_ERR +- name: Log ceph health for debug purposes + ansible.builtin.debug: + var: ceph_health + +- name: Fail if health is HEALTH_ERR ansible.builtin.fail: msg: Ceph is in {{ ceph_health.health.status }} state. when: - - ceph_health.health.status == 'HEALTH_WARN' or - ceph_health.health.status == 'HEALTH_ERR' + - ceph_health.health.status == 'HEALTH_ERR' - name: Build container image target ansible.builtin.set_fact: