Files
dsfin-ansible/roles/common/templates/hosts.j2
Pi 23915d0549 -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.
2019-03-14 12:55:33 -04:00

8 lines
212 B
Django/Jinja

{% 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 %}