Automation · Automation Design
Dry Run
Cheat sheet · https://pcornel.dk/topic.php?topic=5209
Answer
A dry run shows what an automation would change without changing anything, such as ansible-playbook --check --diff, terraform plan or PowerShell -WhatIf, so changes can be reviewed first.
Remember
- A dry run shows intended changes without making them.
- Use --check --diff, terraform plan or -WhatIf.
- Some modules or commands cannot simulate their effect.
First checks
ansible-playbook site.yml --check --diff— Ansible dry runterraform plan— TerraformSet-Something -WhatIf— PowerShell
Commands
kubectl apply --dry-run=serverkubectl diff
Verify in this order
code → dry run → diff review → real run
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=5209