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
This commit is contained in:
1 parent
00c6cbeba4
commit
fdb3f8c1df
11 files changed
+657
-630
No files matched your search
@@ -1,9 +1,9 @@
|
||||
---
|
||||
# Included by converge.yml after each orphan_rules case. The counts are absolute: svc_o1
|
||||
# holds ufw_conv_o1_want rules (default ufw_conv_o1_initial: 2 before the purge, 0 after),
|
||||
# and the tagged total is 20 plus those. The 20: svc_a 2, svc_b 2, svc_c 1, svc_e 2, svc_g 1,
|
||||
# svc_h 2, svc_m 1, svc_o2 1, svc_o3 4 (kept orphans that may carry SSH), svc_p 4 (its
|
||||
# desired rule and three kept stale rules).
|
||||
# Included by converge.yml and verify.yml after each orphan_rules case. The counts are
|
||||
# absolute: svc_o1 holds ufw_conv_o1_want rules (default ufw_conv_o1_initial: 2 before the
|
||||
# purge, 0 after), and the tagged total is 20 plus those. The 20: svc_a 2, svc_b 2, svc_c 1,
|
||||
# svc_e 2, svc_g 1, svc_h 2, svc_m 1, svc_o2 1, svc_o3 4 (kept orphans that may carry SSH),
|
||||
# svc_p 4 (its desired rule and three kept stale rules).
|
||||
- name: Read the rules ufw would load
|
||||
ansible.builtin.command: ufw show added
|
||||
register: ufw_conv_added
|
||||
|
||||
Reference in new issue
Block a user