From a61e33c2ce6f138536492e006de7faf76662916a Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Tue, 2 Sep 2025 04:38:23 +0200 Subject: Configure dhcp hosts in pihole role --- host_vars/rpi5.local.yml | Bin 547 -> 716 bytes host_vars/rpi5.local.yml.example | 7 +++++++ 2 files changed, 7 insertions(+) (limited to 'host_vars') diff --git a/host_vars/rpi5.local.yml b/host_vars/rpi5.local.yml index 9793f631..e571289d 100644 Binary files a/host_vars/rpi5.local.yml and b/host_vars/rpi5.local.yml differ diff --git a/host_vars/rpi5.local.yml.example b/host_vars/rpi5.local.yml.example index e195ccfc..1fc19dd1 100644 --- a/host_vars/rpi5.local.yml.example +++ b/host_vars/rpi5.local.yml.example @@ -8,6 +8,13 @@ network_ipv6_gateway: "fd5c:fd8b:2b8c::1" # TOTP generator: `openssl rand -base64 32 | head -c "20" | base32` pihole_totp_secret: "CHANGEME" pihole_password: "{{ ('changeme' | hash('sha256') | hash('sha256'))[:64] }}" +pihole_dhcp_enabled: true +pihole_dhcp_start: "10.0.0.100" +pihole_dhcp_end: "10.0.0.199" +pihole_dhcp_router: "10.0.0.200" +pihole_dhcp_hosts: + - "ff:ff:ff:ff:ff:fe, 10.0.0.252,TV" + - "ff:ff:ff:ff:ff:ff, 10.0.0.253,Printer" wireguard_gateway_enabled: true wireguard_autostart_connection: "protonvpn-us-1" -- cgit v1.2.3