test(roles): run the Ubuntu roles on 24.04 and 26.04 and declare exactly those #381

Merged
Defame1297 merged 6 commits from test/133-ubuntu-2404-2604 into main 2026-11-26 07:46:34 +00:00
3 changed files with 7 additions and 5 deletions
Showing only changes of commit 1f27f02f13 - Show all commits

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