2023-09-01 15:42:19 -04:00
|
|
|
# Local system hosts file
|
|
|
|
# {{ ansible_managed }}
|
|
|
|
|
2023-09-01 15:42:19 -04:00
|
|
|
127.0.0.1 localhost
|
|
|
|
::1 ip6-localhost ip6-loopback
|
2023-09-01 15:42:19 -04:00
|
|
|
ff02::1 ip6-allmodes
|
|
|
|
ff02::2 ip6-allrouters
|
2023-09-01 15:42:19 -04:00
|
|
|
|
|
|
|
{% for node in pvc_nodes %}
|
2023-09-01 15:42:23 -04:00
|
|
|
{{ node.cluster_ip }} {{ node.hostname.split('.')[0] }}.{{ pvc_cluster_domain }} {{ node.hostname.split('.')[0] }}
|
|
|
|
{{ node.storage_ip }} {{ node.hostname.split('.')[0] }}.{{ pvc_storage_domain }}
|
|
|
|
{{ node.upstream_ip }} {{ node.hostname.split('.')[0] }}.{{ local_domain }}
|
2023-09-01 15:42:19 -04:00
|
|
|
{% endfor %}
|
2023-09-01 15:42:21 -04:00
|
|
|
|
2023-09-01 15:42:25 -04:00
|
|
|
{% if hosts is defined and hosts %}
|
2023-09-01 15:42:21 -04:00
|
|
|
{% for host in hosts %}
|
|
|
|
{{ host.ip }} {{ host.name }}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|