summaryrefslogtreecommitdiffstats
path: root/ansible/roles/rancher/molecule/default/playbook.yml
blob: 436f2ff4724fe23acb16cfee60721c0f9396d6f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
- name: Converge rancher master
  hosts: infrastructure
  roles:
    - prepare-common
    - role: rancher
      vars:
        mode: server

- name: Converge rancher agent
  hosts: kubernetes
  roles:
    - role: rancher
      vars:
        mode: agent

- name: Wait for Kubernetes environment to be healthy
  hosts: infrastructure
  roles:
    - role: rancher
      vars:
        mode: health
        rancher_server_url: "http://{{ cluster_ip }}:8080"
        # Do not get rancher cluster healthy in this env (to be checked),
        # but it's enough in molecule test to verify we get this unhealthy response
        rancher_cluster_health_state: unhealthy
        rancher_cluster_health_check_retries: 40