Fix warning of mkdir usage (#6951)
Fix warning of mkdir usage (#6951)

This fixes the following warning:

  [kubernetes/client : Generate admin kubeconfig with external api endpoint]
  [WARNING]: Consider using the file module with state=directory rather than
  running 'mkdir'.  If you need to use command because file is insufficient
  you can
Atoms/kubespray,kubernetes-sigs/kubespray,Atoms/kubespray,kubernetes-incubator/kubespray,kubernetes-sigs/kubespray,kubernetes-sigs/kubespray,kubernetes-sigs/kubespray,Atoms/kubespray,kubernetes-incubator/kargo,Atoms/kubespray,kubernetes-incubator/kargo,kubernetes-incubator/kubespray