| | |
| | | command: oc get route -n openshift-console console -o json |
| | | register: routeconsole |
| | | |
| | | - name: Get API for command line |
| | | environment: |
| | | KUBECONFIG: /home/{{ ansible_user }}/cluster-{{ guid }}/auth/kubeconfig |
| | | command: oc whoami --show-server |
| | | register: showserver |
| | | |
| | | - name: Print Overview |
| | | debug: |
| | | msg: "{{ item }}" |
| | | with_items: |
| | | - "user.info: Kubeadmin user / password: kubeadmin / {{ kubeadminr.content | b64decode }}" |
| | | - "user.info: Openshift Master Console: http://{{ routeconsole.stdout | from_json | json_query('spec.host') }}" |
| | | - "user.info: Openshift API for command line 'oc' client: {{ showserver.stdout | trim }}" |
| | | - "user.info: Download oc client from https://mirror.openshift.com/pub/openshift-v3/clients/4.0.0-0.79.0" |
| | | |
| | | |
| | | # NOT Pre-installed |