blob: e4a7151ea9faceef44cd5b9c9a612cfd4596c1f1 [file] [log] [blame]
Samuli Silviusbb3bef82019-04-04 08:22:08 +03001---
2- name: Converge rancher master
3 hosts: infrastructure
4 roles:
Michal Zegana83ae842019-05-22 17:53:00 +02005 - prepare-common
Samuli Silviusbb3bef82019-04-04 08:22:08 +03006 - role: rancher
7 vars:
8 mode: server
9 rancher_server_url: "http://{{ cluster_ip }}:8080"
10
11- name: Converge rancher agent
12 hosts: kubernetes
13 roles:
14 - role: rancher
15 vars:
16 mode: agent
17
18- name: Wait for Kubernetes environment to be healthy
19 hosts: infrastructure
20 roles:
21 - role: rancher
22 vars:
23 mode: health
24 rancher_server_url: "http://{{ cluster_ip }}:8080"
25 # Do not get rancher cluster healthy in this env (to be checked),
26 # but it's enough in molecule test to verify we get this unhealthy response
27 rancher_cluster_health_state: unhealthy
28 rancher_cluster_health_check_retries: 40