14 lines
299 B
YAML
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
|