Skip to content

Commit

Permalink
Go nuclear in reset
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaassssiiee committed Dec 10, 2024
1 parent 158f8b5 commit de54068
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions reset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,23 @@
- name: Reset cluster
hosts: etcd:k8s_cluster:calico_rr
gather_facts: true
become: true
collections:
- kubernetes_sigs.kubespray

tasks:
- ansible.builtin.include_role:
name: kubespray-defaults

- ansible.builtin.include_role:
name: reset

- ansible.builtin.command:
cmd: kubeadm reset -f

- ansible.builtin.file:
path: "{{ item }}"
state: absent
loop:
- /etc/kubernetes
- /etc/cni/net.d

0 comments on commit de54068

Please sign in to comment.