This project contains Ansible playbooks to create VirtualBox VMs and set up a Kubernetes cluster.
ansible.cfg
: Configuration file for Ansible.inventory/hosts
: Inventory file listing the hosts.playbooks/create_vms.yml
: Playbook to create VMs.playbooks/configure_k8s.yml
: Playbook to configure Kubernetes on the VMs.playbooks/roles/virtualbox/
: Role to handle VirtualBox installation and VM creation.playbooks/roles/kubernetes/
: Role to handle Kubernetes installation and configuration.
- Ensure VirtualBox is installed on your machine.
- Place the Ubuntu ISO in the specified path (
~/Downloads/ubuntu-20.04-live-server-amd64.iso
). - Run the playbook to create VMs:
ansible-playbook playbooks/create_vms.yml
- Run the playbook to configure Kubernetes:
ansible-playbook playbooks/configure_k8s.yml
- Run the playbook to deploy Nginx:
ansible-playbook playbooks/deploy_nginx.yml