Frequent questions about dry runs: when to use them, why they sometimes disagree with the real run, and what to do when the tool does not offer the flag.
- When should I dry-run?
Before any change that is expensive to undo: mass edits, migrations, deploys, infrastructure changes, DNS updates.
- Why does the plan disagree with the real run?
State drift: the tool's view of the world is stale. Refresh state, then dry-run again.
- What if the tool has no dry-run flag?
Emulate it: read the docs, back up first, or run against staging. A missing flag is not an excuse.
- Is dry-run the same as --check?
Semantically yes; different tools use different names. Ansible uses
--check, rsync uses--dry-run, terraform usesplan.