Commit Graph
3 Commits
Author SHA1 Message Date
Defame1297 cb78edff6f fix(pihole)!: refuse a non-empty app password and render app_pwhash empty
Released pihole-FTL checks an app_pwhash that does not start with `$` as a
legacy double-SHA256 hash and, on a match, upgrades it to a BALLOON hash
written into the main webserver.api.pwhash. One login with the app
password the role rendered therefore replaced the web password. FTL
master fixes this, no release has it yet, and the role does not pin FTL.

validate.yml now refuses a non-empty config.webserver.api.app_password,
and the template always renders app_pwhash = "", which FTL treats as app
passwords disabled. The key stays in the defaults; only a value is
refused. Molecule verifies the rendered empty hash and the new refusal.

BREAKING CHANGE: a non-empty config.webserver.api.app_password now fails
the role, and app_pwhash always renders empty.

Refs: #383
Assisted-by: Claude Code
2026-12-06 21:35:12 +00:00
Defame1297 d84fb4a2f4 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
2026-11-25 18:53:21 +00:00
Defame1297 66628635b9 feat(pihole): add the pihole role
Installs Pi-hole v6 on Ubuntu noble and resolute by cloning the
upstream repository and running its installer unattended, with
pihole.toml rendered from pihole_default merged with pihole_overrides.
A change to pihole.toml runs the installer's reconfigure mode.

Validation runs first under always: the host must be Ubuntu, and the
merged settings need a non-empty interface and upstream list and a
string password other than the placeholder. pihole_web_password is a
required no_log input. Computed values are internal __pihole_ names.

Derived from codeberg.org/ansible/pihole (GPL-3.0-only) with Pi-hole
FTL comment text (EUPL-1.2): REUSE.toml annotations, the EUPL-1.2
text and NOTICE entries record both. The README roadmap drops pihole.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-25 18:10:59 +00:00