0Pricing
Ansible Academy · Lesson

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 --check

All lessons in this course

  1. Desired State, Not Step-by-Step Scripts
  2. Reading changed vs ok in Output
  3. Why command Breaks Idempotency
  4. Check Mode: Dry-Run with --check
← Back to Ansible Academy