From 70c5937e2a3cf3b8688ba1d53e914236574aac08 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Fri, 28 Oct 2022 12:36:52 +0200 Subject: [PATCH] chore: adjust ipv6 localhost in hosts --- templates/etc/hosts.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/etc/hosts.j2 b/templates/etc/hosts.j2 index 0cbe905..ece3526 100644 --- a/templates/etc/hosts.j2 +++ b/templates/etc/hosts.j2 @@ -2,7 +2,7 @@ {{ ansible_managed | comment }} 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 {% if network_ipv6_enabled %} -::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 +::1 localhost6 localhost6.localdomain6 {% endif %} {% 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 }}