k8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansiblekubernetes-clustergcekubernetesbare-metal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
387 B
17 lines
387 B
---
|
|
- name: kubeadm | Retrieve files to purge
|
|
find:
|
|
paths: "{{ kube_cert_dir }}"
|
|
patterns: '*.pem'
|
|
register: files_to_purge_for_kubeadm
|
|
|
|
- name: kubeadm | Purge old certs
|
|
file:
|
|
path: "{{ item.path }}"
|
|
state: absent
|
|
with_items: "{{ files_to_purge_for_kubeadm.files }}"
|
|
|
|
- name: kubeadm | Purge old kubeconfig
|
|
file:
|
|
path: /root/.kube/config
|
|
state: absent
|