July 2017
Intermediate to advanced
402 pages
9h 38m
English
By default, Ansible expects to find the custom libraries in the /usr/share/ansible folder. As previously when we looked at the inventory script in Chapter 3, Treating Your Infrastructure As Code, we can change 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 that 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 lives, we are going to add the new ...
Read now
Unlock full access