test(roles): accept both prohibit-password names and declare pihole on 26.04
Build / build (pull_request) Successful in 32s
Lint / lint (pull_request) Successful in 3m0s
Molecule / molecule (pull_request) Failing after 13m34s

sshd -T prints prohibit-password as without-password on OpenSSH 9 and
as prohibit-password on OpenSSH 10 (Ubuntu 26.04). pihole shipped in
2.1.0 on noble only, so gaining resolute is a minor change. The docker
and gitea exception now points at the image fix, #376.

Assisted-by: Claude Code
This commit is contained in:
Defame1297 committed 2026-11-25 21:09:12 +00:00
1 parent df06260b27
commit 1f27f02f13
3 files changed
+7 -5

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
---
minor_changes:
- >-
cloudflared, fail2ban, gitea_runner, sshd, system_baseline, systemd_hardening, traefik, ufw,
user_management - Declare and are tested on Ubuntu 26.04 (``resolute``) next to 24.04
cloudflared, fail2ban, gitea_runner, pihole, sshd, system_baseline, systemd_hardening, traefik,
ufw, user_management - Declare and are tested on Ubuntu 26.04 (``resolute``) next to 24.04
(``noble``).
+1 -1
View File
@@ -77,7 +77,7 @@ names a check that does not exist yet and its backlog issue.
- **Declared means tested.** A platform in `meta/main.yml` is one the role passes Molecule on in
CI; one used but untested goes only in a README "Untested platforms" line. Accepted until the
Debian image (#226) lands: `trixie` declared untested, and Debian `all` in network_interfaces;
and until the 26.04 image ships gnupg (#378): `docker` and `gitea` declare `noble` only.
and until the 26.04 molecule image is fixed (#376): `docker` and `gitea` declare `noble` only.
*Why:* no tool reads the declaration, so it is worth something only if true. *Held:* review.
- **Platforms follow the target hosts.** Ubuntu-targeting roles declare exactly `noble` and
`resolute`; Proxmox-targeting roles declare Debian `trixie`; each is tested on its own OS.
+4 -2
View File
@@ -237,8 +237,10 @@
- name: Root logs in with keys only, passwords stay off
ansible.builtin.assert:
that:
# sshd -T prints the first alias in its table for prohibit-password: without-password.
- sshd_verify_pve_effective.stdout_lines is contains('permitrootlogin without-password')
# sshd -T prints prohibit-password under one of its names, by OpenSSH version.
- >-
'permitrootlogin prohibit-password' in sshd_verify_pve_effective.stdout_lines
or 'permitrootlogin without-password' in sshd_verify_pve_effective.stdout_lines
- sshd_verify_pve_effective.stdout_lines is contains('passwordauthentication no')
- sshd_verify_pve_effective.stdout_lines is contains('pubkeyauthentication yes')
quiet: true