CICD-256 · Idempotency testing
Encyclopedia · Ansible and configuration management · All snippets
Previous · CICD-255 · Next · CICD-257
1. Where it fits
- Placement CI run step.
- Prerequisites controller with reviewed inventory, pinned Ansible collections and a non-production target.
- Platforms local-linux, github-actions, gitea-actions.
2. Copy the snippet
bash
molecule converge
molecule idempotence3. How it works
Molecule runs the role scenario against a disposable fixture and checks outcomes across its lifecycle.
4. Verify the result
The second converge must report zero changed tasks unless a deliberately non-idempotent task is isolated and documented.
Validation syntax-validated (Bash parse). Status definitions.