How to perform a dry-run of the Ansible playbook

Using --check option is useful in scenarios where you want to preview the changes that the playbook would make, without actually applying them to the hosts

Example:

ansible-playbook -i inventory playbook.yaml --check
It will only report what changes would be made if the playbook was executed normally