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

+5 -10
View File
@@ -17,9 +17,11 @@ argument_specs:
C(changetoyourownpassword).
- >-
C(pihole_default) (every setting rendered into C(pihole.toml)) and C(pihole_install_script) (the quoted
installer path under C(repo.path)) are role defaults deliberately not listed here: argument validation
templates every listed variable, and their defaults read gathered facts and the merged settings, which do
not exist yet when it runs. Override settings through C(pihole_overrides) instead.
installer path under C(repo.path)) are role defaults deliberately not listed here, because argument
validation templates every listed variable. C(pihole_install_script) reads the merged settings, which the
role sets only after validation. Templating C(pihole_default) would turn a missing C(pihole_web_password)
into an undefined-variable error before the clean missing-required-arguments message. Override settings
through C(pihole_overrides) instead.
options:
pihole_web_password:
type: raw
@@ -64,13 +66,6 @@ argument_specs:
default: 5
description:
- Seconds to pause after the merge result is printed. Only used when C(pihole_testing) is true.
pihole_force_install:
type: bool
default: false
description:
- >-
No effect: the install task condition ends in C(or true). Whether the installer runs depends only on
C(config.files.database) not existing yet.
pihole_apt_dependencies:
type: list
elements: str