Check Mode: Dry-Run with --check
Preview changes without applying them.
Preview Before You Apply
Sometimes you want to know what a playbook would change before it touches anything. Check mode gives you that safe preview.
Run with --check
Add --check to ansible-playbook for a dry run. Ansible reports what it would do but makes no real changes on the hosts.
ansible-playbook site.yml --checkAll lessons in this course
- Desired State, Not Step-by-Step Scripts
- Reading changed vs ok in Output
- Why command Breaks Idempotency
- Check Mode: Dry-Run with --check