In this recipe, we will outline how to build and structure our Ansible inventory to describe our sample F5 BIG-IP nodes. Building an Ansible inventory is a mandatory step in telling Ansible how to connect to the managed devices.
Building an Ansible network inventory
Getting ready
We will create a new folder that will host all the files that we will create in this chapter. The new folder is named ch5_f5.
How to do it...
- Inside the new folder, ch5_f5, we create a hosts file with the following content:
$ cat hosts
[ltm]
ltm01 Ansible_host=172.20.1.34
- Create an Ansible.cfg...