March 2019
Beginner
490 pages
12h 40m
English
We use Ansible manage and automate some tasks on a remote host. All the hosts to be managed by the Ansible controller are listed in the inventory file. The file is located by default in the following path /etc/ansible/hosts.
Basically, this contains a lists of all the hosts that Ansible may manage. The machines can be identified by their IP address or by their hostname. You can also create groups with similar machines. The independent hosts must be at the beginning of the file, before any group.
Here is an example inventory file:
192.168.1.160[test-servers]192.168.1.161[production-servers]192.168.1.162
This configuration file specifies three hosts. The first node is specified by its IP address and the latter two hosts ...
Read now
Unlock full access