After installing Ansible, we need to define Ansible's inventory, which is a text file that defines the nodes that Ansible will manage. In this recipe, we will outline how to create and structure Ansible's inventory file.
Building Ansible's inventory
Getting ready
We need to create a folder that will contain all the code that we will outline in this chapter. We create a folder called ch1_ansible, as shown here:
$ mkdir ch1_ansible
$ cd ch1_ansible
How to do it...
Perform the following steps to create the inventory file:
- Create a file named hosts:
$ touch...