---
# Tasks to clean up kubeconfig

# Clean up the temporary kubeconfig directory
- name: Remove temporary kubeconfig directory
  ansible.builtin.file:
    path: "{{ kubeconfig_cleanup_dir }}"
    state: absent
  when: kubeconfig_cleanup_required | default(false)
  ignore_errors: true
