Guillaume Coré
2018-12-18 72d7f059c3bd5ff015ca1f61e0e0d5314e59e4df
OCP 4: send API address to user for command line access
1 files modified
8 ■■■■■ changed files
ansible/configs/ocp4-coreos-deployer/software.yml 8 ●●●●● patch | view | raw | blame | history
ansible/configs/ocp4-coreos-deployer/software.yml
@@ -135,12 +135,20 @@
          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