-change hosts file - will maintain hosts file on multipe machines.
for the scope of this type of demo network, this is much simpler than installing and managing dns.
This commit is contained in:
7
roles/common/templates/hosts.j2
Normal file
7
roles/common/templates/hosts.j2
Normal file
@@ -0,0 +1,7 @@
|
||||
{% for item in ansible_play_batch %}
|
||||
{{ hostvars[item].ansible_host }} {{ item }}.demo.dsfinancial.com
|
||||
{% endfor %}
|
||||
|
||||
{% for item in ansible_play_batch %}
|
||||
{{ hostvars[item].ansible_host }} {{ item }}
|
||||
{% endfor %}
|
||||
Reference in New Issue
Block a user