90d9b9b7d9
This patch refactors ensure-kubernetes to use the new generic role to allow it to be cross-platform in the future. Change-Id: Ic90c8973431823814c7e6b122f4ef25a67d64c2f
22 lines
530 B
YAML
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
|