zuul-jobs/roles/ensure-kubernetes/tasks/main.yaml
Mohammed Naser 90d9b9b7d9 ensure-kubernetes: refactor to use ensure-package-repositories
This patch refactors ensure-kubernetes to use the new generic role
to allow it to be cross-platform in the future.

Change-Id: Ic90c8973431823814c7e6b122f4ef25a67d64c2f
2020-05-01 15:49:30 +02:00

22 lines
530 B
YAML

- name: Add all repositories
include_role:
name: ensure-package-repositories
vars:
repositories_keys:
- url: https://packages.cloud.google.com/apt/doc/apt-key.gpg
repositories_list:
- repo: deb http://apt.kubernetes.io/ kubernetes-xenial main
- name: Install kubernetes packages and dependencies
become: yes
apt:
name:
- conntrack
- kubectl
- liblz4-tool
update_cache: yes
- name: Run cluster tasks
include_tasks: minikube.yaml
when: install_kubernetes_with_cluster