Automation · Automation Design
Preconditions
Cheat sheet · https://pcornel.dk/topic.php?topic=5196
Answer
Preconditions are checks before an automation changes anything, such as the target being reachable, enough disk space, the right version, or a maintenance window being open.
Remember
- Preconditions are checked before anything changes.
- Typical checks: target reachable, disk space, version, window open.
- Failing early avoids half-done changes.
First checks
- Precondition checks (reachability, versions, maintenance window) — guards
- Abort on failed precondition — safety
- Logged checks — evidence
Verify in this order
preconditions checked → proceed or abort
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=5196