Files
homelab-infrastructure/ansible/playbooks/reset.yaml
T

14 lines
299 B
YAML

- name: Reset nodes
hosts: all
become: true
tasks:
- name: Reset kubeadm
ansible.builtin.command: kubeadm reset -f
args:
removes: /etc/kubernetes/*.conf
- name: Clear CNI configuration
ansible.builtin.file:
path: /etc/cni/net.d
state: absent