Use it when gating automation around Preflight Checks. Keep authoritative criteria, immutable source/input, exact target identity, validator version, observed/effective state and workload acceptance as separate proof boundaries.
Preflight Checks
Preflight Checks gather decision-grade evidence immediately before automation starts so unsupported, unsafe or impossible operations fail before mutation.
1. Preflight checks verify the environment before changes.
2. Connectivity, versions, capacity, health, approvals.
3. Abort clearly.
4. Log results.
5. Fast.
preflight → pass → proceed / fail → abort
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
ansible-playbook --syntax-check <playbook.yml>Primary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
planned operation/source → target identity → reachability/auth → capability/dependencies → capacity/conflicts/locks → recovery readiness → timestamped preflight verdict → execution
Healthy evidence: checks use the exact execution context, stale results expire and unmet prerequisites prevent mutation.
Step 2 Known-good, broken and when it is fixed Verify boundary
Known-good means the same revision/target passes all required checks, an intentionally invalid condition fails the expected check where practical, and no target mutation occurred during preflight. The subsequent apply and post-change verification remain separate evidence stages; a green preflight is readiness evidence only.
Step 3 Command read-back and what it shows Verify boundary
Verification for Validation → Preflight Checks must distinguish state, not merely report that a command ran. With ansible-playbook --syntax-check <playbook.yml>, known-good means the exact artifact revision parses, expected inventory/variables resolve, documented non-mutating prerequisites pass and a bounded dry/check phase is available before mutation where the tool supports it; known-broken/suspicious means parser/static errors, missing variables/targets, failed prerequisite or a pipeline that bypasses preflight and reaches mutation with an unvalidated artifact. ansible-playbook <playbook.yml> --syntax-check shows Ansible parser/static playbook validity for that controller environment, but it does not show inventory reachability, privilege, idempotence or safe execution.
Step 4 Common mistakes Verify boundary
- Preflight checks on only one target.
Step 5 Failure modes and next checks Narrow the fault
Suspicious evidence: checks run in a different context, omit capacity/lock/recovery conditions or are cached beyond the period in which they remain trustworthy.
Step 6 Native failure isolation and next-check logic Narrow the fault
When preflight blocks a run, preserve each failed check and its observed value rather than bypassing the whole gate. Confirm the target and source revision first, then classify failure as input, access, dependency, capacity, compatibility or rollback-readiness. If preflight passes but apply fails, compare timestamps and identify state that changed between validation and mutation.
Step 7 Observation-driven branch and next-check logic Narrow the fault
When Validation → Preflight Checks fails, reproduce the smallest original case and capture ansible-playbook --syntax-check <playbook.yml> before mutation. Use the observation to choose the next check: if syntax/parser fails, fix artifact before any remote execution; if syntax passes but inventory/variables are unresolved, validate controller inputs; if controller inputs resolve but remote prerequisite fails, stop at connectivity/privilege/capacity rather than starting the change.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Preflight pass ≠ execution safe indefinitely.
- Endpoint reachable ≠ required operation authorized.
- Capacity available now ≠ capacity guaranteed during execution.
- Rollback artifact exists ≠ rollback is valid or tested.
- Preflight script (reachability, versions, capacity, maintenance window) — checks
ansible all -m ping— reachability- Abort on preflight failure — safety
ReferenceWhat it is1 section · depth on demand
Core model
Resolve the planned operation and exact scope, check reachability, identity, permissions, capability, dependency, capacity, conflict/lock and rollback prerequisites, timestamp the results, and bind them to the execution decision.
ReferenceHow it works2 sections · depth on demand
How it works
Preflight checks evaluate prerequisites before mutation: target identity/reachability, credentials, capacity, dependency state, version/feature support, input/schema validity and rollback readiness. A preflight should be side-effect-free or explicitly bounded. Passing preflight shows prerequisites at check time, not that the subsequent change will succeed or remain safe if state changes.
How it works
Validation → Preflight Checks should be reasoned about as a state pipeline, not as one command outcome. The responsible state is the automation artifact selected for execution, parser/static structure, inventory/variable availability and non-mutating prerequisites that can be checked before a deployment starts. Preflight shifts failures left by validating syntax, resolvable references and selected environmental prerequisites before a mutating play/workflow is allowed to reach targets; meanwhile dynamic inventory side effects, secrets, remote connectivity, module/provider behavior and runtime data can remain outside a pure syntax check. This distinction is especially important because syntax success is necessary but not sufficient; it says nothing about remote authentication or whether task semantics are safe for the current target state.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Preflight Checks show conditions observed before execution; mutable target state can invalidate them and must be rechecked where races or long delays matter.
In depth
Preflight checks run immediately before a change to confirm the target is in a state where the change is safe: reachable, healthy, enough resources, no conflicting work, and in the approved window.
| Check | Example |
|---|---|
| Reachability | SSH/API responds |
| Health | No active critical alarms |
| Resources | Disk space for image, memory headroom |
| Locks | No other job on the same target |
| Window | Inside approved change window |
| Backup | Fresh backup exists |
If any preflight check fails, the job should stop before making changes and explain why.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Validation > Preflight Checks. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://json-schema.org/learn/getting-started-step-by-step · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Preflight Checks validation proof-boundary map
Fast criteria/scope, execution and effective-outcome proof boundaries for Preflight Checks.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Criteria / input | Criteria, source revision, validator and exact target identity are explicit | A generic pass exists without versioned criteria or target correlation |
| Preconditions / operation | Current authoritative facts are bound to the exact operation | Stale preflight or requested state substitutes for execution-time facts |
| Effective outcome | Authoritative state/read-back and service-relevant evidence match the expected result | Tool/test/validator success substitutes for effective target or workload proof |
| Limits / next action | Coverage limits, unknowns and failures drive the next narrower check | Unknown evidence becomes pass, retries hide failures or broad success is inferred from one check |