From 5ceb809a52d93b99dcab5d77f42fdaa02fe6e8cb Mon Sep 17 00:00:00 2001 From: Ahmed AbdelHalim Date: Sun, 31 Aug 2025 21:03:54 +0200 Subject: Update pihole role to function as dhcp for the network --- roles/pihole/meta/argument_specs.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'roles/pihole/meta') diff --git a/roles/pihole/meta/argument_specs.yml b/roles/pihole/meta/argument_specs.yml index b50fc5c5..e7cf04e7 100644 --- a/roles/pihole/meta/argument_specs.yml +++ b/roles/pihole/meta/argument_specs.yml @@ -30,6 +30,26 @@ argument_specs: type: "bool" description: "The boolean flag to toggle DHCP on the pi-hole" default: false + pihole_dhcp_start: + type: "str" + description: "The dhcp start address" + default: "{{ ansible_default_ipv4.network }}.100" + pihole_dhcp_end: + type: "str" + description: "The dhcp end address" + default: "{{ ansible_default_ipv4.network }}.199" + pihole_dhcp_address: + type: "str" + description: "The dhcp server address (local pihole address)" + default: "{{ ansible_default_ipv4.address }}" + pihole_dhcp_lease_time: + type: "int" + description: "The dhcp lease time in hours" + default: 24 + pihole_dhcp_domain: + type: "str" + description: "The dhcp local domain extension" + default: "local" pihole_domain: type: "str" description: "The domain name to be configured when the pi is exposed over the internet" -- cgit v1.2.3