By default, Ansible expects to find the custom libraries in the /usr/share/my_modules/ directory. Previously, when we looked at the inventory script in Chapter 3, Treating Your Infrastructure as Code, we changed this default behavior by editing the ansible.cfg file. We will make the necessary changes so that the library is being downloaded onto the host with the rest of the Ansible files. The simplest way to accomplish this is to create a new directory at the root of our ansible repository and put the library in it.
On your computer, open a Terminal and go to your ansible directory:
In the root directory of our ansible repository, where the ansible.cfg file is located, we are going ...