fix(pihole): address review findings

Remove the pihole_force_install input, which had no effect, and the dead
term of the install condition. Tag the merge and the configuration
directory check always, so --skip-tags config-only no longer skips facts
that later tasks read. Skip the installer log under --check, where the
installer did not run. Read the env and user_id facts through
ansible_facts, drop a redundant default, state the real reasons two
defaults stay out of the argument spec, and bring the README to the
fixed heading set.

Assisted-by: Claude Code:claude-opus-5-5
This commit is contained in:
Defame1297 committed 2026-11-25 18:53:21 +00:00
1 parent 9979dfa8ed
commit d84fb4a2f4
7 files changed
+33 -38

No files matched your search

+1 -4
View File
@@ -12,7 +12,7 @@ pihole_default:
version: "v6.4"
# I don't like using /tmp because it requires running git as root
# most suitable "tmp"-like path under user's HOME is ~/.cache/ I guess
path: "{{ ansible_env.HOME }}/.cache/pi-hole"
path: "{{ ansible_facts['env']['HOME'] }}/.cache/pi-hole"
gh_slug: "pi-hole/pi-hole"
user: pihole
group: pihole
@@ -486,9 +486,6 @@ pihole_overrides: {}
pihole_testing: false
pihole_testing_timeout: 5
# no effect: the install condition ends in "or true"
pihole_force_install: false
# path to Pi-Hole's automated install script
# supports the "--unattended" flag
# NOTE the inner quotes are important since path contains a space