diff --git a/roles/install-kubernetes/README.rst b/roles/install-kubernetes/README.rst index ea0d962f8..a48798923 100644 --- a/roles/install-kubernetes/README.rst +++ b/roles/install-kubernetes/README.rst @@ -6,3 +6,8 @@ An ansible role to install kubernetes. :default: True If true, installs a Minikube cluster. + +.. zuul:rolevar:: minikube_version + :default: latest + + The version of Minikube to install. diff --git a/roles/install-kubernetes/defaults/main.yaml b/roles/install-kubernetes/defaults/main.yaml index 19ff90d2d..6040df0d3 100644 --- a/roles/install-kubernetes/defaults/main.yaml +++ b/roles/install-kubernetes/defaults/main.yaml @@ -1 +1,2 @@ install_kubernetes_with_cluster: True +minikube_version: latest diff --git a/roles/install-kubernetes/tasks/minikube.yaml b/roles/install-kubernetes/tasks/minikube.yaml index d0c2f50c1..7c3f9790e 100644 --- a/roles/install-kubernetes/tasks/minikube.yaml +++ b/roles/install-kubernetes/tasks/minikube.yaml @@ -5,7 +5,7 @@ - name: Download Minikube get_url: - url: https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 + url: https://storage.googleapis.com/minikube/releases/{{ minikube_version }}/minikube-linux-amd64 dest: /tmp/minikube mode: 0755 when: stat_result.stat.exists == False