diff mode

An option that makes modules print a before-and-after diff of each file they change, or would change in check mode.

In more detail

Start it with ansible-playbook --diff, usually together with --check, to see exactly which lines of a configuration file or template would change before you approve a run. Only modules that manage text can provide one, and it can reveal secret values in file content, so use it with care on sensitive files.

Related terms

Taught in

References

Certification courses