In this recipe, we will outline how to build and structure the Ansible inventory to describe our sample leaf-spine direct current (DC) network. The Ansible inventory is a pivotal part of Ansible as it outlines and groups devices that should be managed by Ansible.
Building the Ansible network inventory
Getting ready
We need to create a new folder that will host all the files that we will create in this chapter. The new folder should be named ch4_arista.
How to do it...
- Inside the new folder (ch4_arista), we create a hosts file with the following content:
$ cat hosts
...