test(roles): run the Ubuntu roles on 24.04 and 26.04 and declare exactly those #381
No files matched your search
@@ -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
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user