In this recipe, we will outline how to build and structure the Ansible inventory to describe the sample SP network setup outlined previously. The Ansible inventory is a pivotal part in Ansible, as it defines and groups devices that should be managed by Ansible.
Building the network inventory
Getting ready
We create a new folder that will host all the files that we will create in this chapter. The new folder is named ch3_junos.
How to do it...
- Inside the new folder, ch3_junos, we create a hosts file with the following content:
$ cat hosts
[pe]
mxpe01 Ansible_host=172.20...