ansible-playbook --diff site.yml

Category: IaC & Automation

ansible-playbook --diff site.yml

Show file changes a playbook would make

Runs the playbook while printing diffs for file-modifying tasks such as copy or template, showing exactly what content changes. Combine with --check for a full dry run with visible changes. Related: ansible-playbook --check site.yml.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.