Switch /root references to ansible_env.HOME (#4842)

* kube config dir for current/ansible become user

* remove extra /

* fix default value
This commit is contained in:
mervynzhang
2019-06-06 02:06:11 -07:00
committed by Kubernetes Prow Robot
parent bbdc6210f5
commit a8dfcbbfc7
6 changed files with 11 additions and 11 deletions

View File

@@ -13,5 +13,5 @@
- name: kubeadm | Purge old kubeconfig
file:
path: /root/.kube/config
path: "{{ ansible_env.HOME | default('/root') }}/.kube/config"
state: absent