In order to start our analysis of our network, we create a new playbook that is used to execute all the required tasks and validate the network configuration with Batfish. In this playbook, we use the following parameters:
- We run the playbook on all the nodes in our network. This is because we will need to reference the parameters for each node in subsequent tasks (such as loopback internet protocols (IPs)).
- We set the ansible_connection parameter to local as we don't need to connect to our devices, and all the tasks will run locally on the Ansible machine.
- We specify the IP address of the Batfish server machine hosting the batfish container. This will be used in all subsequent tasks to communicate with the Batfish server. ...