2016-06-29 12:34:37 +12:00
|
|
|
# This file is managed by Ansible #
|
|
|
|
|
## DO NOT edit manually as changes will be overwritten ##
|
|
|
|
|
|
|
|
|
|
127.0.0.1 localhost {{ ansible_hostname }}
|
|
|
|
|
::1 localhost {{ ansible_hostname }}
|
|
|
|
|
|
|
|
|
|
{{ ansible_default_ipv4.address }} {{ ansible_hostname }}.{{ domain }} {{ ansible_hostname }}
|
|
|
|
|
|
2016-07-03 21:01:28 +12:00
|
|
|
{# note: below block takes a list of ip -> name mappings
|
|
|
|
|
applying them to the hosts file should the variable be
|
|
|
|
|
populated.
|
|
|
|
|
#}
|
|
|
|
|
{% if vendors_hosts %}
|
2016-07-04 09:43:31 +12:00
|
|
|
#*** Vendor Additional Host Entries ***#
|
2016-07-03 21:01:28 +12:00
|
|
|
|
|
|
|
|
{% for item in vendors_hosts %}
|
2016-06-29 12:34:37 +12:00
|
|
|
{{ item.ip }} {{ item.name }}
|
2016-07-03 21:01:28 +12:00
|
|
|
{% endfor %}
|
|
|
|
|
|
2016-07-04 09:43:31 +12:00
|
|
|
#*** END Vendor Additional Host Entries ***#
|
2016-06-29 12:34:37 +12:00
|
|
|
{% endif %}
|