cp sample-hosts.ini hosts.ini
# Edit hosts.ini
ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i hosts.ini playbook.yml
cp kubeconfig ~/.kube/config
# Install CNI
# - Calico: kubectl apply -f https://projectcalico.docs.tigera.io/manifests/calico.yaml
# - Cilium: cilium install
ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i hosts.ini -e kubernetes_version=v1.31 playbook.yml
ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i hosts.ini -e kubernetes_kubeadm_init_extra_args=--pod-network-cidr=172.16.0.0/16 playbook.yml
# or
ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i hosts.ini -e kubernetes_kubeadm_init_extra_args=--skip-phases=addon/kube-proxy playbook.yml