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
13 lines
562 B
YAML
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
|