summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--roles/install-kubernetes/tasks/minikube.yaml6
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/install-kubernetes/tasks/minikube.yaml b/roles/install-kubernetes/tasks/minikube.yaml
index 7c3f979..425c001 100644
--- a/roles/install-kubernetes/tasks/minikube.yaml
+++ b/roles/install-kubernetes/tasks/minikube.yaml
@@ -44,5 +44,11 @@
44 MINIKUBE_HOME: "{{ ansible_user_dir }}" 44 MINIKUBE_HOME: "{{ ansible_user_dir }}"
45 KUBECONFIG: "{{ ansible_user_dir }}/.kube/config" 45 KUBECONFIG: "{{ ansible_user_dir }}/.kube/config"
46 46
47- name: Ensure minikube config is owned by ansible_user
48 become: yes
49 file:
50 path: "{{ ansible_user_dir }}/.minikube/client.key"
51 owner: "{{ ansible_user }}"
52
47- name: Get cluster info 53- name: Get cluster info
48 command: kubectl cluster-info 54 command: kubectl cluster-info