diff --git a/changelogs/fragments/133-ubuntu-2604.yml b/changelogs/fragments/133-ubuntu-2604.yml index 5b7aa88..2c71305 100644 --- a/changelogs/fragments/133-ubuntu-2604.yml +++ b/changelogs/fragments/133-ubuntu-2604.yml @@ -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``). diff --git a/roles/AGENTS.md b/roles/AGENTS.md index 0fd1f91..657a35e 100644 --- a/roles/AGENTS.md +++ b/roles/AGENTS.md @@ -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. diff --git a/roles/sshd/molecule/default/verify.yml b/roles/sshd/molecule/default/verify.yml index 87fee5a..67001d3 100644 --- a/roles/sshd/molecule/default/verify.yml +++ b/roles/sshd/molecule/default/verify.yml @@ -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