zuul-jobs/roles/install-kubernetes/tasks/main.yaml
David Shrewsbury 230a0f6cc2 Add role to install kubernetes
Optionally, and by default, installs a Minikube cluster that runs
locally.

Change-Id: Ie6d0b73e6b3bdb77eee133a5f663133fd037aba0
2018-10-31 15:49:20 -04:00

22 lines
472 B
YAML

- name: Install apt key
become: yes
apt_key:
url: "https://packages.cloud.google.com/apt/doc/apt-key.gpg"
state: present
- name: Add kubernetes repo
become: yes
apt_repository:
repo: deb http://apt.kubernetes.io/ kubernetes-xenial main
state: present
- name: Install kubernetes packages
become: yes
apt:
name: kubectl
update_cache: yes
- name: Run cluster tasks
include_tasks: minikube.yaml
when: install_kubernetes_with_cluster