From 77f20aad2886d64e3493b6e1c012c9b9295afcd3 Mon Sep 17 00:00:00 2001 From: Thomas Kleinendorst Date: Mon, 15 Apr 2024 20:56:02 +0200 Subject: [PATCH] Set hostname in pi-hole container The hostname is reported in the pi-hole dashboard, this looks a bit nicer than a randomly generated id. --- roles/pi-hole/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/pi-hole/tasks/main.yml b/roles/pi-hole/tasks/main.yml index 03751bc..133234c 100644 --- a/roles/pi-hole/tasks/main.yml +++ b/roles/pi-hole/tasks/main.yml @@ -51,6 +51,7 @@ - 127.0.0.1:5053:53/tcp - 127.0.0.1:5053:53/udp - 127.0.0.1:8080:80 + hostname: "{{ ansible_facts['hostname'] }}" # Setting this will restart the container env: TZ: 'Europe/Amsterdam' WEBPASSWORD: "{{ pi_hole_web_password }}"