This guide will help you install Ansible and run the playbook for setting up a Kubernetes cluster.
A local machine with a supported operating system (e.g., Ubuntu, CentOS). SSH access to the target machines. Python installed on the local machine.
On the local machine, run:
sudo apt install python3 python3-pip -y
pip3 install ansible
ansible --version
Edit the inventory/hosts
file for matching your environment.
Edit the group_vars/all.yml
file for matching your preferences.
To run the playbook:
- Setup Cluster:
ansible-playbook playbooks/setup.yml