mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-06 18:17:47 +03:00
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:
committed by
Kubernetes Prow Robot
parent
bbdc6210f5
commit
a8dfcbbfc7
@@ -101,7 +101,7 @@
|
||||
- name: Master | Copy new kubeconfig for root user
|
||||
copy:
|
||||
src: "{{ kube_config_dir }}/admin.conf"
|
||||
dest: "/root/.kube/config"
|
||||
dest: "{{ ansible_env.HOME | default('/root') }}/.kube/config"
|
||||
remote_src: yes
|
||||
mode: "0600"
|
||||
backup: yes
|
||||
|
||||
Reference in New Issue
Block a user