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

Open
Claude wants to merge 3 commits from test/133-ubuntu-2404-2604 into main
pull from: test/133-ubuntu-2404-2604
Owner

What and why

Closes #133

Blocked by #376. On the molecule-ubuntu2604 image every become task fails with sudo: account validation failure (run 5611; every *-2604-instance, 24.04 instances pass). That is an image problem, not a role problem. Once #376's image is pinned, this branch is rebased on it and re-run, and docker and gitea gain resolute here too.

A declared platform is one the role passes Molecule on in CI (#207, #257). Every role except network_interfaces now:

  • runs each molecule scenario on ${MOLECULE_IMAGE} (24.04) and ${MOLECULE_IMAGE_2604} (26.04), including _binary_update/molecule/check_mode;
  • declares exactly Ubuntu noble and resolute: jammy is dropped (sshd, system_baseline, systemd_hardening, ufw, user_management);
  • says so in its README "Supported platforms" and "Tests", with one line on why it covers fewer than three releases.

trixie stays declared in sshd, system_baseline, systemd_hardening and user_management until #226 tests it. network_interfaces and system_baseline/tasks/tmux.yml are untouched.

Exceptions until #376 lands:

  • docker and gitea stay on noble (docker narrowed from all): their scenarios also need gnupg, which #376 adds to the 26.04 image. This is recorded in roles/AGENTS.md.

Other changes:

  • pihole (shipped in 2.1.0 on noble only) gains resolute.
  • sshd verify.yml accepts both names sshd -T prints for prohibit-password: without-password on OpenSSH 9 and prohibit-password on OpenSSH 10. This was the one real 26.04 difference run 5611 showed.

Fragments:

  • breaking_changes: jammy dropped in five roles; docker's all narrowed to noble.
  • minor_changes: resolute added to ten roles, pihole included.

_binary_update is internal and outside semver, so it is not named.

Release note for the maintainer: these breaking_changes make the next release built from the fragments 3.0.0.

Verified

  • pre-commit run --all-files with the dev environment from scripts/dev-setup.sh. All hooks pass, including ansible-lint (schema[meta] accepts resolute), yamllint, antsibull-changelog lint and REUSE.
  • ansible-test sanity (pre-push hook) passed on each push.
  • Molecule run 5611: every 24.04 instance passes. Every 26.04 instance fails on become (#376); sshd's 26.04 instance also failed the prohibit-password assertion, which is fixed here.
  • Every 2604 platform is identical to its 2404 counterpart except name and image (checked by review).

Not verified

  • Molecule on 26.04 past become: it can't run until #376 is fixed. Remaining risks:
    • user_management's visudo -c / sudo -l assertions under sudo-rs;
    • system_baseline's prepare installs telnet, and its defaults include the transitional apt-transport-https;
    • pihole's dnsutils and lighttpd-mod-deflate in the resolute archive.
  • A role that still fails on 26.04 after #376 is reverted to noble only here, with its own issue, per #133's Notes.
  • The added CI time (about twice the Molecule containers on a full run) is not measured.

  • I confirm third-party material is recorded in NOTICE and REUSE.toml, or there is none.

Assisted-by: Claude Code

## What and why Closes #133 **Blocked by #376.** On the `molecule-ubuntu2604` image every `become` task fails with `sudo: account validation failure` (run 5611; every `*-2604-instance`, 24.04 instances pass). That is an image problem, not a role problem. Once #376's image is pinned, this branch is rebased on it and re-run, and docker and gitea gain `resolute` here too. A declared platform is one the role passes Molecule on in CI (#207, #257). Every role except `network_interfaces` now: - runs each molecule scenario on `${MOLECULE_IMAGE}` (24.04) and `${MOLECULE_IMAGE_2604}` (26.04), including `_binary_update/molecule/check_mode`; - declares exactly Ubuntu `noble` and `resolute`: `jammy` is dropped (sshd, system_baseline, systemd_hardening, ufw, user_management); - says so in its README "Supported platforms" and "Tests", with one line on why it covers fewer than three releases. `trixie` stays declared in sshd, system_baseline, systemd_hardening and user_management until #226 tests it. `network_interfaces` and `system_baseline/tasks/tmux.yml` are untouched. Exceptions until #376 lands: - **docker and gitea** stay on `noble` (docker narrowed from `all`): their scenarios also need `gnupg`, which #376 adds to the 26.04 image. This is recorded in `roles/AGENTS.md`. Other changes: - **pihole** (shipped in 2.1.0 on `noble` only) gains `resolute`. - **sshd** `verify.yml` accepts both names `sshd -T` prints for prohibit-password: `without-password` on OpenSSH 9 and `prohibit-password` on OpenSSH 10. This was the one real 26.04 difference run 5611 showed. Fragments: - `breaking_changes`: `jammy` dropped in five roles; docker's `all` narrowed to `noble`. - `minor_changes`: `resolute` added to ten roles, pihole included. `_binary_update` is internal and outside semver, so it is not named. **Release note for the maintainer:** these `breaking_changes` make the next release built from the fragments **3.0.0**. ## Verified - `pre-commit run --all-files` with the dev environment from `scripts/dev-setup.sh`. All hooks pass, including ansible-lint (`schema[meta]` accepts `resolute`), yamllint, antsibull-changelog lint and REUSE. - `ansible-test sanity` (pre-push hook) passed on each push. - Molecule run 5611: every 24.04 instance passes. Every 26.04 instance fails on `become` (#376); sshd's 26.04 instance also failed the prohibit-password assertion, which is fixed here. - Every 2604 platform is identical to its 2404 counterpart except name and image (checked by review). ## Not verified - **Molecule on 26.04 past `become`:** it can't run until #376 is fixed. Remaining risks: - user_management's `visudo -c` / `sudo -l` assertions under sudo-rs; - system_baseline's prepare installs `telnet`, and its defaults include the transitional `apt-transport-https`; - pihole's `dnsutils` and `lighttpd-mod-deflate` in the resolute archive. - A role that still fails on 26.04 after #376 is reverted to `noble` only here, with its own issue, per #133's Notes. - The added CI time (about twice the Molecule containers on a full run) is not measured. --- - [x] I confirm third-party material is recorded in `NOTICE` and `REUSE.toml`, or there is none. Assisted-by: Claude Code
Claude added this to the Continuous delivery milestone 2026-11-25 20:19:00 +00:00
Defame1297 was assigned by Claude 2026-11-25 20:19:00 +00:00
Claude added 1 commit 2026-11-25 20:19:00 +00:00
test(roles): run the Ubuntu roles on 24.04 and 26.04 and declare exactly those
Build / build (pull_request) Successful in 51s
Lint / lint (pull_request) Successful in 3m42s
Molecule / molecule (pull_request) Failing after 20m50s
2e1ad033e4
Every role except network_interfaces runs its molecule scenarios on the
24.04 and 26.04 images and declares Ubuntu noble and resolute; jammy and
Ubuntu all are dropped. trixie stays declared until the Debian 13 image
(#226) tests it. docker and gitea stay on noble until the 26.04 image
ships gnupg (#378).

Closes #133

Assisted-by: Claude Code
CODEOWNERS rules requested review from Defame1297 2026-11-25 20:19:00 +00:00
Defame1297 added 2 commits 2026-11-25 21:13:43 +00:00
# Conflicts:
#	changelogs/fragments/pihole-role.yml
test(roles): accept both prohibit-password names and declare pihole on 26.04
Build / build (pull_request) Successful in 32s
Molecule / molecule (pull_request) In progress
Lint / lint (pull_request) Successful in 3m0s
1f27f02f13
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
Some checks are pending
Build / build (pull_request) Successful in 32s
Required
Details
Molecule / molecule (pull_request) In progress
Required
Details
Lint / lint (pull_request) Successful in 3m0s
Required
Details
Some required checks are missing.
This pull request has official review requests.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin test/133-ubuntu-2404-2604:test/133-ubuntu-2404-2604
git checkout test/133-ubuntu-2404-2604
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Kamino#381