|
@@ -4,7 +4,12 @@
|
|
|
{% endif -%}
|
|
|
|
|
|
127.0.0.1 localhost
|
|
|
+{% if ansible_default_ipv4 is defined %}
|
|
|
{{ ansible_default_ipv4.address }} {{ ansible_fqdn }} {{ ansible_hostname }}
|
|
|
+{% endif %}
|
|
|
+{% if ansible_default_ipv6 is defined %}
|
|
|
+{{ ansible_default_ipv6.address }} {{ ansible_fqdn }} {{ ansible_hostname }}
|
|
|
+{% endif %}
|
|
|
|
|
|
# The following lines are desirable for IPv6 capable hosts
|
|
|
::1 localhost ip6-localhost ip6-loopback
|