Jim Rigsbee
2020-02-13 f293921b7cc03d0a862e6ad6c3972f64586008d5
ansible/configs/ocp4-workshop/software.yml
@@ -1,4 +1,19 @@
---
- 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
@@ -51,7 +66,16 @@
              aws_access_key_id = {{ hostvars.localhost.student_access_key_id }}
              aws_secret_access_key = {{ hostvars.localhost.student_secret_access_key }}
        # For GA Releases
        # - name: Install Packages
        #   become: yes
        #   package:
        #     name:
        #       - golang
        #       - python2-boto
        #       - python2-boto3
        #       - unzip
        # For GA Releases
        - name: Set URLs for OpenShift GA releases
          when: not ocp4_installer_use_dev_preview | d(False) | bool
          set_fact:
@@ -203,6 +227,16 @@
          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 }}"
@@ -233,6 +267,15 @@
            - "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: