|
@@ -15,7 +15,7 @@
|
|
|
ignore_errors: yes
|
|
|
|
|
|
# Log the result of `oc status`, `oc get pods`, `oc get events`, and `oc logs deployment/webconsole` for troubleshooting failures.
|
|
|
-- when: endpoint_health.stdout != 'ok'
|
|
|
+- when: "'ok' not in endpoint_health.content"
|
|
|
block:
|
|
|
- name: Check status in the openshift-web-console namespace
|
|
|
command: >
|
|
@@ -46,7 +46,7 @@
|
|
|
- debug:
|
|
|
msg: "{{ endpoint_log.stdout_lines }}"
|
|
|
|
|
|
-- when: endpoint_health.stdout != 'ok'
|
|
|
+- when: "'ok' not in endpoint_health.content"
|
|
|
block:
|
|
|
- name: Report console errors
|
|
|
fail:
|