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
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
Minor release: adds the pve_lxc role and declares community.proxmox
(>=2.1.0) as a Collection dependency; its modules need proxmoxer 2.3 or
later on the controller.
Assisted-by: Claude Code:claude-opus-5-5
Add pve_lxc, which manages the lifecycle of a Proxmox VE LXC container
through the Proxmox API (community.proxmox), reconciles the raw lxc.*
lines of its config on the node and, opt-in, writes its guest firewall
file. It keeps the pve_lxc_* interface and carries no legacy-name guard.
The input asserts run from tasks/validate.yml before any change, and the
API token secret has no default.
The molecule scenario runs the validation and the node-side task files
against a container standing in for the node; the API lifecycle is not
exercised. Debian trixie is declared, untested.
Refs #386
Assisted-by: Claude Code:claude-opus-5-5
molecule-ubuntu2604 0.1.7 lets become from root through and ships gnupg,
so docker and gitea declare resolute like the other Ubuntu roles and the
accepted exception goes. The 26.04 image-smoke scenario now checks
become and gnupg, so a regression fails the image's own pin pull request.
Assisted-by: Claude Code
The pve_lxc role (#386) manages Proxmox VE guests through community.proxmox,
whose modules import proxmoxer on the controller.
- galaxy.yml: depend on community.proxmox >=2.1.0 (the X.Y.0 of the tested pin,
like the other dependencies); requirements.yml pins 2.1.0.
- requirements-dev.txt/.lock: pin proxmoxer 2.3.0, the floor community.proxmox
2.1.0 enforces, so the dev venv and the ci image carry it.
- README: name the new dependency and the controller-side proxmoxer floor.
- ci image: label and doc list the new contents; the changed pin files
rebuild it on main.
Refs #386
Assisted-by: Claude Code:claude-opus-5-5
The 26.04 smoke checks run against the pinned image, which gains the
fix only after this change is built and pinned; they follow with the
pin.
Assisted-by: Claude Code
In the booted 26.04 container, pam_unix's account check for sudo runs
the unix_chkpwd helper, which fails there, so become from root fails
with "account validation failure". /etc/pam.d/sudo now lets root
through with pam_rootok before common-account; a non-root caller still
goes through pam_unix. The build fails if the line does not apply.
gnupg joins the image, as in the 24.04 image: the docker and gitea
scenarios need it on the target. The temporary diagnostics are removed.
Closes#376
Assisted-by: Claude Code