2019-06-27 15:11:26 -04:00
|
|
|
- name: start kubernetes and install all dependencies
|
|
|
|
hosts: all
|
|
|
|
roles:
|
2019-07-11 17:28:12 -04:00
|
|
|
- role: clear-firewall
|
2020-07-07 14:58:49 +00:00
|
|
|
- role: ensure-pip
|
2020-04-13 09:25:24 +02:00
|
|
|
- role: ensure-podman
|
|
|
|
- role: ensure-kubernetes
|
2020-01-11 18:56:14 +00:00
|
|
|
vars:
|
|
|
|
minikube_dns_resolvers:
|
|
|
|
- '1.1.1.1'
|
|
|
|
- '8.8.8.8'
|
2021-04-09 15:09:22 -07:00
|
|
|
ensure_kubernetes_minikube_addons:
|
|
|
|
- ingress
|
2019-07-26 13:00:46 -04:00
|
|
|
- role: use-buildset-registry
|
|
|
|
buildset_registry_docker_user: root
|
2020-03-20 16:13:27 +00:00
|
|
|
post_tasks:
|
2020-07-07 14:58:49 +00:00
|
|
|
- name: Install openshift client for k8s tasks
|
|
|
|
command: python3 -m pip install --user openshift
|
2021-04-09 15:09:22 -07:00
|
|
|
- name: Install websocket
|
|
|
|
become: true
|
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- python3-websocket
|
|
|
|
- jq
|
2020-03-20 16:13:27 +00:00
|
|
|
- name: check kubernetes connection
|
2020-04-07 16:08:06 +00:00
|
|
|
command: timeout 10s kubectl get pods
|
|
|
|
register: _api_ready
|
|
|
|
until: _api_ready.rc == 0
|
|
|
|
retries: 6
|
|
|
|
delay: 10
|