check mode

A rehearsal run that asks each module what it would change and stops before changing anything.

In more detail

Start it with ansible-playbook --check. Tasks report changed if they would change something, and the recap counts predicted changes. It is evidence about the current target, not a guarantee: some modules have limited support, and command tasks cannot predict anything useful. A final check run after applying should report no changes.

Example

ansible-playbook --check --diff preview.yml

Related terms

Taught in

References

Certification courses