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
An apt upgrade of a Proxmox node can restart Proxmox services while a
backup holds a snapshot of a guest, and the role had no way to say
"not now".
system_baseline_skip_upgrade_during_vzdump (bool, default false) makes
the main flow and the update entry point ask the node for its running
tasks (pvesh get /nodes/localhost/tasks --source active) before the
upgrade, on the pve system type only. A vzdump task without an end time
skips the upgrade with a message; autoremove, autoclean and the reboot
check still run. The role does not wait for the backup. A pvesh answer
that is not a JSON list stops the run. With the default no pvesh
command runs.
Closes#400
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
ansible-core deprecates injecting facts as top-level variables (removal is
scheduled for 2.24, see #364). Three roles still read a bare fact: system_baseline (reboot check,
ansible_os_family), docker (APT source line, ansible_distribution_release)
and gitea_runner (re-registration backup name, ansible_date_time). With
inject_facts_as_vars set to false the system_baseline reboot check failed
with "'ansible_os_family' is undefined".
They now read ansible_facts[...]; the argument specs and READMEs that name
the facts follow. run_molecule_in_ci_image.sh exports
ANSIBLE_INJECT_FACT_VARS=False, so a role that reads an injected fact fails
its scenario, and a script test keeps the export in place.
Refs #364
Assisted-by: Claude Code:claude-sonnet-5-5
ADR 0002 records the decision with its measured saving and build cost.
The two risks it leaves (no Molecule run after a merge, and pin bumps
first behaviour-tested after they merge) go to the Accepted risks
register in SECURITY.md, as docs/adr/AGENTS.md requires.
Closes#167
Assisted-by: Claude Code
After a removal without purge the role has disabled tailscaled, so the
reinstall's postinst does not start it. systemd then unloads the inactive,
unreferenced unit, and `systemctl reset-failed tailscaled` exits 1 with
"Unit tailscaled.service not loaded.", failing the configure step on both
noble and resolute. An unloaded unit has no failure state to clear, and the
restart that follows loads it, so that one error is not a failure.
Assisted-by: Claude Code:claude-opus-5-5
- Removal passes on a host without a tailscaled unit, and the
best-effort logout reports a change only when it succeeded.
- Under --check the service tasks run only when the unit exists, also
with --tags configure on a host without the package.
- The auth key is required before any change only when the run includes
the configure tasks; --tags remove, install and update need none. The
assert in the up block stays as the hard guard.
- When the flags change or tailscaled is not active, the role clears its
failure state and restarts it at once, so a daemon the package started
without a TUN device does not stay in the start limit.
- The health tag is back on the configure include.
- The scenario tests removal without purge (state and defaults kept, a
second removal passes) and a purge with a state directory the package
does not delete itself, and waits for tailscaled to be active.
Assisted-by: Claude Code:claude-opus-5-5
Enable complexity at the default max_tasks and empty warn_list so
experimental findings fail Lint. Replace the repository-wide role-name
skip with an ignore line for the internal role _binary_update, so a
misnamed public role fails.
Closes#138
Assisted-by: Claude Code:claude-opus-5-5
Installs Tailscale from the upstream APT repository with the keyring
pinned by sha256, enables tailscaled and, with tailscale_up (default
true), runs tailscale up with tailscale_auth_key while the node is not
Running. It can also update to the APT candidate version and remove or
purge.
The role asserts Ubuntu and follows the host's release, and requires a
non-empty auth key before any change whenever tailscale up will run.
tailscale_userspace_networking now sets --tun=userspace-networking in
the FLAGS of /etc/default/tailscaled, where tailscaled reads it, instead
of passing it to tailscale up.
The molecule scenario installs the real package on noble and resolute
without joining a tailnet, and covers the update and purge paths and
the refusal cases.
Closes#396
Assisted-by: Claude Code:claude-opus-5-5
The molecule images ship without apt lists, and --check does not
refresh them, so the fresh-host check of docker and traefik could not
find curl and wget. Their prepare now refreshes the cache, as pihole's
and system_baseline's already do by installing fixtures.
The sequence test gets its own class after the platform tests, the
check-mode rule is split into guards and README, and the
user_management comment sits on the task it explains.
Assisted-by: Claude Code
Guard gitea_runner's docker group membership like its Docker start, run
user_management's getent probe unconditionally, and state the
play-level check_mode limit in every touched README. The check-mode
rule now allows the pihole guard form and names roles whose --check
needs their package installed.
Assisted-by: Claude Code
Every role scenario with a converge now runs check right before it (a
fresh host) and right after it (a configured host), and a script test
fails a scenario without both. pihole and pve_lxc move their second
check from after idempotence to after converge to match.
The roles that failed under --check on a fresh host get the two allowed
guards: cloudflared, docker, gitea, gitea_runner, traefik and
user_management. ufw and fail2ban preview only a host where their
package is installed, as their READMEs now say.
Closes#134
Assisted-by: Claude Code
Major release: the roles declare exactly the Ubuntu releases they pass
Molecule on in CI. Ubuntu 26.04 (resolute) is added next to 24.04
(noble); 22.04 (jammy) is dropped from five roles and docker narrows
from every Ubuntu release to noble and resolute.
Assisted-by: Claude Code