- Kubernetes:A Complete DevOps Cookbook
- Murat Karslioglu
- 84字
- 2025-04-04 13:20:39
Installing Ansible
In order to provision a Kubernetes cluster using an Ansible playbook, follow these steps:
- 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
- Install Ansible using the following command:
$ sudo apt-get update && sudo apt-get install ansible -y
- 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.