summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ansible/roles/rke/molecule/default/prepare.yml3
-rw-r--r--ansible/test/roles/prepare-rke/tasks/infra.yml6
2 files changed, 3 insertions, 6 deletions
diff --git a/ansible/roles/rke/molecule/default/prepare.yml b/ansible/roles/rke/molecule/default/prepare.yml
index 6bad2b80..b012790a 100644
--- a/ansible/roles/rke/molecule/default/prepare.yml
+++ b/ansible/roles/rke/molecule/default/prepare.yml
@@ -13,3 +13,6 @@
- role: prepare-rke
vars:
mode: infra
+ - role: prepare-kubectl
+ vars:
+ kubectl_install: true
diff --git a/ansible/test/roles/prepare-rke/tasks/infra.yml b/ansible/test/roles/prepare-rke/tasks/infra.yml
index e9971f77..6e7bcb96 100644
--- a/ansible/test/roles/prepare-rke/tasks/infra.yml
+++ b/ansible/test/roles/prepare-rke/tasks/infra.yml
@@ -8,9 +8,3 @@
get_url:
url: "https://github.com/rancher/rke/releases/download/v{{ rke_version }}/rke_linux-amd64"
dest: "{{ app_data_path }}/downloads/rke_linux-amd64"
-
-- name: "Install kubectl-{{ kubectl_version }}"
- get_url:
- url: "https://storage.googleapis.com/kubernetes-release/release/v{{ kubectl_version }}/bin/linux/amd64/kubectl"
- dest: "/usr/local/bin/kubectl"
- mode: 0755