<aside> 📢 Ansible is only required for multi-node environments. Users with a single-node environment can skip this section.

</aside>

Ansible is an IT automation tool. We will use Ansible to install Docker on all nodes and control the physical or virtual machines.

In this section you will do the following:

  1. Install Ansible
  2. Customize the inventory files of your cluster
  3. Use Ansible to control specific nodes

Install Ansible

Add the required apt repository and install Ansible.

$ sudo add-apt-repository --yes --update ppa:ansible/ansible
$ sudo apt update
$ sudo apt install -y ansible

Verify that Ansible was successfully installed.

$ ansible --version
ansible 2.5.1
...

Customizing inventory files for your cluster

The Ansible inventory file describes hosts in your cluster and the cluster’s configuration details. The PrimeHub installation playbook reads your inventory file to know where, and how, to install the PrimeHub Platform across your set of hosts.

Create Ansible Inventory File

Create a new inventory YAML file.

$ vim ~/inventory.yml

Prepare the inventory file according to your cluster’s environment. Please refer to the official documentation for details on how to build your inventory

Verify Ansible is functioning correctly and check ntp time