From 3d5ee8637f96743d21af65e2448de344f299039e Mon Sep 17 00:00:00 2001 From: Tristan Cacqueray Date: Tue, 19 Feb 2019 05:48:20 +0000 Subject: [PATCH] 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 --- roles/install-kubernetes/tasks/minikube.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/install-kubernetes/tasks/minikube.yaml b/roles/install-kubernetes/tasks/minikube.yaml index 7c3f9790e..425c001c8 100644 --- a/roles/install-kubernetes/tasks/minikube.yaml +++ b/roles/install-kubernetes/tasks/minikube.yaml @@ -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