230a0f6cc2
Optionally, and by default, installs a Minikube cluster that runs locally. Change-Id: Ie6d0b73e6b3bdb77eee133a5f663133fd037aba0
22 lines
472 B
YAML
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
|