converge.yml is replayed by check, converge, check and idempotence on
both platforms, so the validation-only plays in it ran eight times per
scenario. They need no container: move them to the top of verify.yml,
on localhost in check mode, so they run once and a regressed refusal
cannot change the controller.
Applies to the default scenarios of system_baseline, docker, sshd and
systemd_hardening. The systemd_hardening refusal of a drop-in entry
that is not a mapping comes after the disable and mask tasks, so it
moves to verify.yml but stays on the container. The README Tests
sections say where each check now runs.
Assisted-by: Claude Code:claude-opus-5-5
A change to .gitea/workflows/molecule.yml selected every scenario, so a
molecule image pin bump or a comment edit ran the full set. The selector
now compares the merge-base and HEAD copies of the workflow:
- `#` and blank lines outside a block scalar are dropped; inside one
(a `run: |` script, where they may be heredoc content) they count;
- the line after each CI_IMAGE, MOLECULE_IMAGE and MOLECULE_IMAGE_2604
`>-` key must be its value, deeper than the key and in the shape
Renovate writes, in both copies;
- comments only select nothing; a MOLECULE_IMAGE* pin selects every
scenario with a file naming it, or every scenario when a shared
molecule file names it or a file is unreadable or a symlink;
- CI_IMAGE, any other difference or a git error selects everything.
reason_for() is split out of select() to stay under ruff's complexity
limit. The Molecule rule in .gitea/workflows/AGENTS.md describes the
new case.
Assisted-by: Claude Code:claude-opus-5-5
Updates, lock file maintenance included, open on Mondays (UTC) so any
Monday run can act, with no hourly pull request limit; the weekly window
and the groups bound the volume. Groups: own CI images (ci and both
molecule pins, exempt from the schedule), ubuntu base images (Dockerfile
FROM and image.yml job_image digests in one branch, so manual), lint
tooling and pre-commit hooks. osvVulnerabilityAlerts brings fixes from
osv.dev; they skip the schedule and the release-age wait, so
vulnerabilityAlerts.automerge false keeps a person on each one.
Assisted-by: Claude Code:claude-opus-5-5
ADR 0002's image bullet now names ADR 0003 as the decision that adds
Molecule's controller image; its decision is unchanged. ADR 0003 states
the Lint-only share of ci pin pull requests as a count and lists the
push paths of image.yml among the files the implementation updates.
Assisted-by: Claude Code:claude-opus-5-5
A Renovate pull request is not always rebased just for falling
behind main, so forbidding every update would leave it stuck. Never
use the update button on it; tick the rebase/retry checkbox instead,
and say why a hand-made update commit is excluded.
Assisted-by: Claude Code:claude-opus-5-5
Record ADR 0003: Molecule runs in a molecule-controller image that bakes
only Molecule's tools, from a requirements file and hash-pinned lock of
its own, so a ci pin pull request no longer moves molecule.yml and runs
no scenario. The ADR lists the files the implementation updates and the
alternatives not taken.
Assisted-by: Claude Code:claude-opus-5-5
main blocks an outdated branch, so every update re-runs Lint, Build
and Molecule and cancels the run in progress. Limit updates to the
pull request that is next to merge, schedule its merge afterwards,
and leave renovate/ branches to Renovate's own rebase.
Assisted-by: Claude Code:claude-opus-5-5
Removing timeout-minutes left the sweep step's 45 minute bound without
the job timeout it must equal, and the script test that holds the two
equal failed with a KeyError. Restore the key at 90 minutes, which also
leaves a full run under load (PR #405 took 44m53s) real margin, and move
the sweep bound to match so a live run's containers are never removed.
Assisted-by: Claude Code
The role capped the persistent journal on every host with no way to opt
out, and wrote the value into the drop-in unchecked: an empty value
produced an empty SystemMaxUse=, and a bare number, a typo or a line
break went into the file as it was.
An empty system_baseline_journal_max_use now skips the journald task, as
an empty system_baseline_apt_daily_timeout skips its task: no drop-in
directory, no drop-in file and no restart of systemd-journald. A file an
earlier run wrote stays.
Any other value is checked before any change: infinity, or a number
followed by K, M, G or T. A bare number, a space and a line break stop
the run with a message that names the input. The default stays 200M.
Closes#401
Assisted-by: Claude Code:claude-sonnet-5-5
The pihole and user_management scenarios read getent_passwd and
getent_shadow as top-level variables. The getent module returns them as
facts, which are injected as variables only while inject_facts_as_vars
is on, so with the setting this pull request turns on in the molecule
job the two verify plays failed (exit 2 in both runs of this pull
request, whose per-scenario logs were not printed).
They now read ansible_facts['getent_passwd'] and
ansible_facts['getent_shadow']. The remaining module-returned facts in
roles/ and extensions/ (package_facts, service_facts, the getent read in
user_management's ssh_keys.yml) are already read through ansible_facts.
Assisted-by: Claude Code:claude-sonnet-5-5
The molecule job of the previous head ended at its timeout before it
printed the per-scenario logs, so the exit 2 of pihole and
user_management has no output. No file changes.
Assisted-by: Claude Code:claude-sonnet-5-5
The runner's job container refuses unshare, even with a user namespace, so the
fast path sets PIP_NO_INDEX and a dead proxy instead; a raw socket is not caught.
Assisted-by: Claude Code
system_baseline_essential_packages and system_baseline_remove_packages
replace the whole list, and so does a list inside
system_baseline_profile_overrides, so adding one package meant repeating
the profile's list and keeping it in step with every release.
system_baseline_extra_packages and system_baseline_extra_remove_packages
(lists, default empty) append to the resolved lists. The tmux and
unattended-upgrades checks read the combined list, so an extra tmux or
unattended-upgrades enables the matching task like a profile package.
Items must be Debian package names: a null item would have become the
package "None", and apt reads a trailing minus (jq-) as a removal. A
package that one input installs and another purges stops the run before
any change; only overlaps that involve an extra are checked, so a
consumer's own overlap between the resolved lists behaves as before. A
flat input that is a plain string still counts as a one-item list.
With both inputs left at their default the role behaves as before.
Closes#399
Assisted-by: Claude Code:claude-sonnet-5-5
When the pins match the ci image every tool is baked in, so a runtime
download is a bake-in defect; failing the job makes it visible.
Assisted-by: Claude Code
Minor release: adds the tailscale role, and fixes six roles that failed
under --check on a host where they were not installed yet.
Assisted-by: Claude Code:claude-opus-5-5