Browse Source

Use consistent config location in web console debugging

Clayton Coleman 7 years ago
parent
commit
0e41185e70
1 changed files with 4 additions and 4 deletions
  1. 4 4
      roles/openshift_web_console/tasks/start.yml

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

@@ -19,28 +19,28 @@
   block:
   - name: Check status in the openshift-web-console namespace
     command: >
-      {{ openshift_client_binary }} status --config={{ mktemp.stdout }}/admin.kubeconfig -n openshift-web-console
+      {{ openshift_client_binary }} status --config={{ openshift.common.config_base }}/master/admin.kubeconfig -n openshift-web-console
     register: endpoint_status
     ignore_errors: true
   - debug:
       msg: "{{ endpoint_status.stdout_lines }}"
   - name: Get pods in the openshift-web-console namespace
     command: >
-      {{ openshift_client_binary }} get pods --config={{ mktemp.stdout }}/admin.kubeconfig -n openshift-web-console -o wide
+      {{ openshift_client_binary }} get pods --config={{ openshift.common.config_base }}/master/admin.kubeconfig -n openshift-web-console -o wide
     register: endpoint_pods
     ignore_errors: true
   - debug:
       msg: "{{ endpoint_pods.stdout_lines }}"
   - name: Get events in the openshift-web-console namespace
     command: >
-      {{ openshift_client_binary }} get events --config={{ mktemp.stdout }}/admin.kubeconfig -n openshift-web-console
+      {{ openshift_client_binary }} get events --config={{ openshift.common.config_base }}/master/admin.kubeconfig -n openshift-web-console
     register: endpoint_events
     ignore_errors: true
   - debug:
       msg: "{{ endpoint_events.stdout_lines }}"
   - name: Get console pod logs
     command: >
-      {{ openshift_client_binary }} logs deployment/webconsole --tail=50 --config={{ mktemp.stdout }}/admin.kubeconfig -n openshift-web-console
+      {{ openshift_client_binary }} logs deployment/webconsole --tail=50 --config={{ openshift.common.config_base }}/master/admin.kubeconfig -n openshift-web-console
     register: endpoint_log
     ignore_errors: true
   - debug: