Merge pull request #212 from fridim/rhte-fix-resolve-internaldns
rhte-ocp-workshop: populate /etc/hosts for internaldns
| | |
| | | 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 |