summaryrefslogtreecommitdiff
path: root/roles/kubernetes/kubeadm/reset/tasks/main.yml
blob: 1e3539e14979c451326beb133618a0e079add4dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
- name: clean up settings and files created by kubeadm
  command: kubeadm reset -f

- name: clean up extra configs and logs
  loop:
    - /etc/kubernetes/kubeadm.config
    - /etc/kubernetes/kubeadm-init.log
    - /etc/kubernetes/kubeadm-join.log
    - /etc/kubernetes/pki
    - /etc/kubernetes/encryption
  file:
    path: "{{ item }}"
    state: absent