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
15 lines
437 B
YAML
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
|