Automation · Runbook Automation
Rollback
Cheat sheet · https://pcornel.dk/topic.php?topic=5554
Answer
Rollback in runbook automation defines how to undo the runbook's actions if it fails or makes things worse, ideally as its own runbook step.
Remember
- Rollback should be its own runbook step.
- It runs when a step fails or makes things worse.
- Verify after rollback.
First checks
- Rollback steps — undo
- Backup before change — restore point
- Rollback trigger criteria — when
Verify in this order
failure → rollback steps → previous state
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=5554