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.
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.
- Inside the new folder (ch4_arista), we create a hosts file with the following content:
$ cat hosts