summaryrefslogtreecommitdiffstats
path: root/roles/pihole/meta
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-09-23 12:41:14 +0200
committerAhmed Abdelhalim <[email protected]>2025-09-23 12:43:54 +0200
commit889bc61b6ca572e1f3718d8b1723248c73e747e4 (patch)
treec228694051b8a19cf8f22c47160f6fa34ef8bee8 /roles/pihole/meta
parentd1853692be4764d26f78c3ad86704f737dc5d141 (diff)
Use static values for defaults instead of ansible vars
The ansible vars fail on CI because the validate arguments task runs way before the setting of the variables, which causes the ansible undefined vars on CI to cause errors. This is a way better approach of having the static values as defaults and allowing setting the variables to ansible vars in the host/group vars
Diffstat (limited to 'roles/pihole/meta')
-rw-r--r--roles/pihole/meta/argument_specs.yml5
1 files changed, 1 insertions, 4 deletions
diff --git a/roles/pihole/meta/argument_specs.yml b/roles/pihole/meta/argument_specs.yml
index e6ba264e..9b71f48b 100644
--- a/roles/pihole/meta/argument_specs.yml
+++ b/roles/pihole/meta/argument_specs.yml
@@ -26,7 +26,7 @@ argument_specs:
pihole_interface:
type: "str"
description: "The interface to bind the pi-hole on"
- default: "{{ ansible_default_ipv4.interface }}"
+ default: "eth0"
pihole_dns_blocking_enabled:
type: "bool"
description: "The boolean flag to toggle DNS blocking"
@@ -38,15 +38,12 @@ argument_specs:
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_router:
type: "str"
description: "The dhcp server router (gateway) address"
- default: "{{ ansible_default_ipv4.address }}"
pihole_dhcp_lease_time:
type: "str"
description: "The dhcp lease time string ex. ('45m', '1h', '2d', '1w') empty defaults to dnsmasq default"