Browse Source

Replace stdout with content

Kenjiro Nakayama 7 years ago
parent
commit
0a2b90fdee
1 changed files with 2 additions and 2 deletions
  1. 2 2
      roles/openshift_web_console/tasks/start.yml

+ 2 - 2
roles/openshift_web_console/tasks/start.yml

@@ -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: