When we created the hosts file in the previous chapter, we noticed that it helps to simplify our command lines. So, let's start copying the hosts files we previously used in the root folder of our Ansible repository. Up to now, we have always specified the path of this file on the command line. This is no longer necessary if we create an ansible.cfg file that tells Ansible the location of our hosts file. For this reason, let's create an ansible.cfg file in the root of our Ansible repository with the following content:
[defaults] inventory = hosts host_key_checking = False roles_path = roles
In this file, we have also specified another two variables in addition to the inventory one that we already talk about, and those are host_key_checking and roles_path.
The host_key_checking flag is useful to not require the verification of the remote system SSH key...