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

  1. ---
  2. - name: kubeadm | Retrieve files to purge
  3. find:
  4. paths: "{{ kube_cert_dir }}"
  5. patterns: '*.pem'
  6. register: files_to_purge_for_kubeadm
  7. - name: kubeadm | Purge old certs
  8. file:
  9. path: "{{ item.path }}"
  10. state: absent
  11. with_items: "{{ files_to_purge_for_kubeadm.files }}"
  12. - name: kubeadm | Purge old kubeconfig
  13. file:
  14. path: /root/.kube/config
  15. state: absent