Files
Kamino/roles/traefik/molecule/default/converge.yml
T
Defame1297 fdb3f8c1df
Build / build (pull_request) Successful in 25s
Lint / lint (pull_request) Successful in 1m16s
Molecule / molecule (pull_request) Successful in 9m29s
test(molecule): move refusal plays from converge to verify
molecule's idempotence step reruns converge.yml, so plays that only prove a
role refuses bad input ran twice and added nothing the second time. The ufw,
sshd, gitea and traefik scenarios now keep only the plays that apply the role
in converge.yml; the refusal plays and gitea's child ansible-playbook guard
checks run once, first in verify.yml. Every existing assertion runs after
them, so verify still proves a refused run left the host unchanged.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-22 22:15:37 +00:00

13 lines
562 B
YAML

---
# Role variables come from the inventory group_vars in molecule.yml, so the idempotence step
# reruns converge with identical configuration; verify's plays override only what they test.
# The base ufw play comes first: traefik passes its rules through the mortis.kamino.ufw
# service_rules entry point, which needs ufw installed and active. ufw_rules comes from the
# same group_vars (the SSH allow rule the lock-out guard requires).
- name: Converge
hosts: all
gather_facts: true
roles:
- role: mortis.kamino.ufw
- role: mortis.kamino.traefik