sborenst
2018-08-28 11275f83c361d544292b57fca3f1b7d18f95e82e
ansible/configs/rhte-ocp-workshop/pre_software.yml
@@ -90,10 +90,33 @@
    - "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/env_secret_vars.yml"
  roles:
    - { role: "{{ ANSIBLE_REPO_PATH }}/roles/bastion", when: 'install_bastion' }
- name: Configuring Bastion Hosts
  hosts: clientvms
  become: true
  gather_facts: false
  vars_files:
    - "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/env_vars.yml"
    - "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/env_secret_vars.yml"
  roles:
    - { role: "{{ ANSIBLE_REPO_PATH }}/roles/bastion-student-user", when: 'student_password' }
    - { role: "{{ ANSIBLE_REPO_PATH }}/roles/ocp-client-vm", when: 'install_clientvm' }
  tags:
    - step004
    - bastion_tasks
- name: Set up ClientVM
  hosts: clientvms
  gather_facts: false
  become: true
  vars_files:
    - "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/env_vars.yml"
    - "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/env_secret_vars.yml"
  tasks:
  - name: Set up Client VM
    include_role:
- name: PreSoftware flight-check
  hosts: localhost
  connection: local