In this recipe, we will outline how to run our Ansible playbooks in dry-run mode. This mode is also called check mode and, in this mode, Ansible will not perform any changes on the remotely managed nodes. We can consider this as a simulation run for our playbook that will make us understand which changes will be made by Ansible, if we execute the playbook in check mode.
Running Ansible in check mode
How to do it...
- Update our ACL declaration in the ACLs.yml file with the new entry, as shown in the following code snippet:
---
ACLs:
INFRA_ACL:
< --- Output Omitted for brevity -- >
- src: 10.3.2.0/24
dst: 10.2.2.0/24
dport: dns
state: present
- Run the pb_push_acl.yml provision playbook using check mode...