Files
Kamino/roles/systemd_hardening/molecule/default/converge.yml
T
Defame1297 2e70980b44
Build / build (pull_request) Successful in 1m10s
Lint / lint (pull_request) Successful in 2m54s
Molecule / molecule (pull_request) Successful in 18m44s
test: check refusals once on the controller in verify
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
2026-11-27 15:05:34 +00:00

15 lines
437 B
YAML

---
# The production LXC profile with one opt-in drop-in. The stub units come from prepare.yml.
- name: Converge the role with a valid profile
hosts: all
vars:
systemd_hardening_system_type: ubuntu_lxc
systemd_hardening_services:
testsvc:
ProtectSystem: strict
NoNewPrivileges: true
ReadWritePaths: [/var/tmp, /run]
LimitNOFILE: 1024
roles:
- role: mortis.kamino.systemd_hardening