summaryrefslogtreecommitdiffstats
path: root/ansible/rancher_kubernetes.yml
blob: e44f18d3314ec6fa186773a5b043bd80fdcabaca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
- name: Deploy rancher server and create k8s env
  hosts: infrastructure
  roles:
    - role: rancher
      vars:
        mode: server
    - kubectl
    - helm

- name: Deploy rancher agents for kube nodes
  hosts: kubernetes
  roles:
    - role: rancher
      vars:
        mode: agent

- name: Wait for Kubernetes environment to be healthy
  hosts: infrastructure
  roles:
    - role: rancher
      vars:
        mode: health