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.
This commit is contained in:
Thomas Kleinendorst 2024-04-15 20:56:02 +02:00
parent 606a26a008
commit 77f20aad28

View file

@ -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 }}"