From 2df419d71028a4f699a98d897439b89e15f4e72a Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Sat, 6 Oct 2018 22:56:32 +0200 Subject: fedora: align with debian role --- roles/fedora/templates/hosts.j2 | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 roles/fedora/templates/hosts.j2 (limited to 'roles/fedora/templates') diff --git a/roles/fedora/templates/hosts.j2 b/roles/fedora/templates/hosts.j2 new file mode 100644 index 0000000..695442d --- /dev/null +++ b/roles/fedora/templates/hosts.j2 @@ -0,0 +1,8 @@ +127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 +::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 +{% if hosts is defined %} + +{% for addr, names in hosts %} +{{ addr }} {{ names|join(' ') }} +{% endfor %} +{% endif %} -- cgit v1.2.1