From 0ab318fcd287cfca56dc220811019db7a7373a25 Mon Sep 17 00:00:00 2001 From: Matthew Fennell Date: Sun, 10 Aug 2025 21:21:58 +0100 Subject: Set hostname in playbook Some services, such as munin, read the hostname from the system, and don't allow "virtual host" configuration like prosody. For such services, we want to make sure the hostname is set correctly. --- files/hosts.j2 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 files/hosts.j2 (limited to 'files') diff --git a/files/hosts.j2 b/files/hosts.j2 new file mode 100644 index 0000000..65ab310 --- /dev/null +++ b/files/hosts.j2 @@ -0,0 +1,11 @@ +# SPDX-FileCopyrightText: 2025 Matthew Fennell +# +# SPDX-License-Identifier: AGPL-3.0-only + +127.0.1.1 {{ hostname }} +127.0.0.1 localhost + +# The following lines are desirable for IPv6 capable hosts +::1 localhost ip6-localhost ip6-loopback +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters -- cgit v1.2.3