March 2019
Intermediate to advanced
356 pages
10h 7m
English
The Ansible inventory file is used by Ansible to reference all known hosts and specify which group they belong to. A group is defined by placing its name in square brackets; groups can be nested inside other groups by the use of the children definition.
Before we add hosts to the inventory file, we first need to configure the remote nodes for password-less SSH, otherwise we will have to enter a password every time Ansible tries to connect to a remote machine as follows:
$ ssh-keygen

$ ssh-copy-id mon1
This will need to be repeated for each host. Normally, ...
Read now
Unlock full access