Shachar Borenstein
2018-09-07 2419ef0c971a0d8ecb6a85a7702740f9afab7dc5
Merge pull request #212 from fridim/rhte-fix-resolve-internaldns

rhte-ocp-workshop: populate /etc/hosts for internaldns
1 files modified
8 ■■■■■ changed files
ansible/configs/rhte-ocp-workshop/pre_software.yml 8 ●●●●● patch | view | raw | blame | history
ansible/configs/rhte-ocp-workshop/pre_software.yml
@@ -91,6 +91,14 @@
  roles:
    - { role: "{{ ANSIBLE_REPO_PATH }}/roles/bastion", when: 'install_bastion' }
    - { role: "{{ ANSIBLE_REPO_PATH }}/roles/bastion-student-user", when: student_password is defined }
  tasks:
    - name: Populate /etc/hosts with internaldns to relief route53
      lineinfile:
        dest: /etc/hosts
        regexp: "{{ hostvars[item].internaldns }}$"
        line: "{{ hostvars[item].private_ip_address}} {{ hostvars[item].internaldns }}"
      when: item not in [ 'localhost' ]
      with_items: "{{ groups['all'] }}"
- name: Configuring Bastion Hosts
  hosts: clientvms