summaryrefslogtreecommitdiffstats
path: root/ansible/roles/rke/molecule/default/converge.yml
blob: 8db7aef54fe4ad830ab148475837f016af10e3d7 (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
28
29
30
31
32
33
34
35
36
37
38
39
---
- name: "Set cluster_ip"
  hosts: all
  tasks:
    - name: "Set cluster_ip fact"
      set_fact:
        cluster_ip: "{{ ansible_default_ipv4.address }}"

- name: Configure etcd (RKE)
  hosts: kubernetes-etcd
  roles:
    - role: rke
      vars:
        mode: etcd

- name: Configure kubernetes cluster (RKE)
  hosts: infrastructure
  roles:
    - role: rke
      vars:
        rke_dns:
          provider: coredns
          upstreamnameservers:
            - 8.8.8.8
        mode: config

- name: Prepare kubernetes hosts (RKE)
  hosts: kubernetes
  roles:
    - role: rke
      vars:
        mode: node

- name: Deploy kubernetes cluster (RKE)
  hosts: infrastructure
  roles:
    - role: rke
      vars:
        mode: deploy