install-kubernetes: fix minikube config permission
It seems like new minikube changed the default minikube config permission. This change ensures the minikube config is owned by the ansible_user Change-Id: Ic1af1541fb1f32253678f989d7b62d21074514d5
This commit is contained in:
parent
8567dddf97
commit
3d5ee8637f
@ -44,5 +44,11 @@
|
||||
MINIKUBE_HOME: "{{ ansible_user_dir }}"
|
||||
KUBECONFIG: "{{ ansible_user_dir }}/.kube/config"
|
||||
|
||||
- name: Ensure minikube config is owned by ansible_user
|
||||
become: yes
|
||||
file:
|
||||
path: "{{ ansible_user_dir }}/.minikube/client.key"
|
||||
owner: "{{ ansible_user }}"
|
||||
|
||||
- name: Get cluster info
|
||||
command: kubectl cluster-info
|
||||
|
Loading…
Reference in New Issue
Block a user