<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:
Add the required apt repository and install Ansible.
sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository --yes --update ppa:ansible/ansible
sudo apt install -y ansible
On RHEL, you need to have a valid subscription to install ansible engine packages.
# Install ansible
sudo subscription-manager refresh
sudo subscription-manager repos --enable rhel-7-server-ansible-2-rpms
sudo yum install ansible
# Install ansible
sudo subscription-manager refresh
sudo subscription-manager repos --enable ansible-2-for-rhel-8-x86_64-rpms
sudo dnf install ansible
Verify that Ansible was successfully installed.
ansible --version
ansible 2.9.27
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.