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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.252.204