Installing Ansible

In order to provision a Kubernetes cluster using an Ansible playbook, follow these steps: 

  1. To install Ansible on your Linux workstation, first, we need to add the necessary repositories:
$ sudo apt-get install software-properties-common
$ sudo apt-add-repository --yes --update ppa:ansible/ansible
  1. Install Ansible using the following command:
$ sudo apt-get update && sudo apt-get install ansible -y
  1. Verify its version and make sure Ansible is installed:
$ ansible --version

At the time this recipe was written, the latest Ansible version was 2.9.4.