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
This commit is contained in:
Defame1297 committed 2026-11-25 18:10:59 +00:00
1 parent 4a7189c067
commit 66628635b9
18 files changed
+2405 -8

No files matched your search

+7 -2
View File
@@ -1,10 +1,15 @@
mortis.kamino Ansible Collection
Copyright Defame1297 and contributors. Licensed GPL-3.0-or-later (see COPYING).
The GPL-3.0-only file roles/ufw/templates/before.rules.j2 makes the Collection
as a whole distributable under GPL-3.0 only.
Files marked GPL-3.0-only (roles/pihole, roles/ufw/templates/before.rules.j2)
make the Collection as a whole distributable under GPL-3.0 only.
This Collection contains third-party material. Each file carries an SPDX
header naming its licence; licence texts are in LICENSES/.
- roles/pihole: derived from https://codeberg.org/ansible/pihole by Taha Ahmed
(solarchemist), upstream commit 95a20d4 (GPL-3.0), modified by Defame1297.
- roles/pihole/templates/pihole.toml.j2, roles/pihole/defaults/main.yml: comment
text from Pi-hole FTL v6.2.2/v6.2.3, Copyright Pi-hole, LLC (EUPL-1.2); the
combined work is distributed under GPL-3.0 per EUPL Art. 5.
- roles/ufw/templates/before.rules.j2: derived from ufw conf/before.rules,
Copyright 2008-2023 Canonical Ltd. (GPL-3.0-only).