2019-06-09 00:11:06 -04:00
|
|
|
# Local system hosts file
|
|
|
|
# {{ ansible_managed }}
|
|
|
|
|
2019-06-11 16:32:25 -04:00
|
|
|
127.0.0.1 localhost
|
|
|
|
::1 ip6-localhost ip6-loopback
|
2019-06-09 00:11:06 -04:00
|
|
|
ff02::1 ip6-allmodes
|
|
|
|
ff02::2 ip6-allrouters
|
2019-06-11 16:32:25 -04:00
|
|
|
|
|
|
|
{% for node in pvc_nodes %}
|
2021-11-11 17:37:27 -05:00
|
|
|
{{ node.cluster_ip }} {{ node.hostname }}.{{ pvc_cluster_domain }} {{ node.hostname }}
|
|
|
|
{{ node.storage_ip }} {{ node.hostname }}.{{ pvc_storage_domain }}
|
|
|
|
{{ node.upstream_ip }} {{ node.hostname }}.{{ local_domain }}
|
2019-06-11 16:32:25 -04:00
|
|
|
{% endfor %}
|
2019-08-07 12:48:08 -04:00
|
|
|
|
2021-06-05 01:11:02 -04:00
|
|
|
{% if hosts is defined and hosts %}
|
2019-08-07 12:48:08 -04:00
|
|
|
{% for host in hosts %}
|
|
|
|
{{ host.ip }} {{ host.name }}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|