| | |
| | | --- |
| | | - name: OpenShift Provisioning Pre-Tasks |
| | | hosts: localhost |
| | | connection: local |
| | | gather_facts: false |
| | | become: no |
| | | tasks: |
| | | - name: Report provisioning status |
| | | include_role: |
| | | name: status-report |
| | | vars: |
| | | classroom_status: "Starting the OpenShift Installation" |
| | | status_json: "{{ lookup('template', 'report-before-install.j2') }}" |
| | | bastion_dns_name: "bastion{{ guid }}{{ subdomain_base_suffix }}" |
| | | when: report_status | d(false) |
| | | |
| | | - name: Step 00xxxxx software |
| | | hosts: bastions |
| | | gather_facts: false |
| | |
| | | aws_access_key_id = {{ hostvars.localhost.student_access_key_id }} |
| | | aws_secret_access_key = {{ hostvars.localhost.student_secret_access_key }} |
| | | |
| | | # For GA Releases |
| | | # For GA Releases |
| | | - name: Set URLs for OpenShift GA releases |
| | | when: not ocp4_installer_use_dev_preview | d(False) | bool |
| | | set_fact: |
| | |
| | | command: oc whoami --show-server |
| | | register: showserver |
| | | |
| | | - name: Get Cluster ID |
| | | environment: |
| | | KUBECONFIG: /home/{{ ansible_user }}/{{ cluster_name }}/auth/kubeconfig |
| | | command: oc get clusterversion version -o jsonpath="{.spec.clusterID}" |
| | | register: clusteridr |
| | | |
| | | - name: Set cluster id |
| | | set_fact: |
| | | cluster_id: "{{ clusteridr.stdout | trim }}" |
| | | |
| | | - name: Print Overview |
| | | debug: |
| | | msg: "{{ item }}" |
| | |
| | | - "user.info: You *CANNOT* SSH into this environment" |
| | | when: not install_student_user | bool |
| | | |
| | | - name: Report provisioning status |
| | | include_role: |
| | | name: status-report |
| | | vars: |
| | | classroom_status: "OpenShift Installation Completed" |
| | | status_json: "{{ lookup('template', 'report.j2') }}" |
| | | bastion_dns_name: "bastion{{ guid }}{{ subdomain_base_suffix }}" |
| | | when: report_status | d(false) |
| | | |
| | | always: |
| | | - name: Delete deployinprogress lock file |
| | | file: |