Automation · Idempotency
No-op
Cheat sheet · https://pcornel.dk/topic.php?topic=6001
Answer
A no-op is a run that finds everything already in the desired state and changes nothing, reported as ok or unchanged. Frequent no-op runs are the sign of healthy idempotent automation.
Remember
- A no-op run changes nothing.
- It is the sign of healthy idempotent automation.
- Unexpected changes on rerun need investigation.
First checks
- changed=false when nothing to do — reporting
- No side effects on no-op — safety
- Fast no-op runs — efficiency
Verify in this order
state correct → no-op → changed=false
Where it usually breaks
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6001