test(roles): run molecule's check step before and after converge
Every role scenario with a converge now runs check right before it (a fresh host) and right after it (a configured host), and a script test fails a scenario without both. pihole and pve_lxc move their second check from after idempotence to after converge to match. The roles that failed under --check on a fresh host get the two allowed guards: cloudflared, docker, gitea, gitea_runner, traefik and user_management. ufw and fail2ban preview only a host where their package is installed, as their READMEs now say. Closes #134 Assisted-by: Claude Code
This commit is contained in:
1 parent
51b38211e7
commit
cf2286b7a7
56 files changed
+202
-35
No files matched your search
@@ -17,6 +17,7 @@
|
||||
name:
|
||||
- docker.io
|
||||
state: present
|
||||
register: __gitea_runner_docker_package
|
||||
tags: [gitea_runner, docker, install]
|
||||
|
||||
- name: Enable and start Docker
|
||||
@@ -25,6 +26,8 @@
|
||||
name: docker
|
||||
enabled: true
|
||||
state: started
|
||||
# Under --check a new package is only simulated, so there is no docker unit yet.
|
||||
when: not ansible_check_mode or __gitea_runner_docker_package is not changed
|
||||
tags: [gitea_runner, docker, install]
|
||||
|
||||
- name: Add the runner user to the docker group
|
||||
|
||||
Reference in new issue
Block a user