chore: adjust ipv6 localhost in hosts
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2022-10-28 12:36:52 +02:00
parent a5d22b014b
commit 70c5937e2a
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -2,7 +2,7 @@
{{ ansible_managed | comment }} {{ ansible_managed | comment }}
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
{% if network_ipv6_enabled %} {% if network_ipv6_enabled %}
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 ::1 localhost6 localhost6.localdomain6
{% endif %} {% endif %}
{% if network_hostname is defined and network_fqdn is defined and network_defaultif is defined %} {% if network_hostname is defined and network_fqdn is defined and network_defaultif is defined %}
{{ network_interfaces[network_defaultif].ipaddr | default(hostvars[inventory_hostname]["ansible_" + network_defaultif].ipv4.address) }} {{ network_fqdn }} {{ network_hostname }} {{ network_interfaces[network_defaultif].ipaddr | default(hostvars[inventory_hostname]["ansible_" + network_defaultif].ipv4.address) }} {{ network_fqdn }} {{ network_hostname }}