blob: 09dbfb8e98ffc8219c063a292bd0cac6028cbb94 [file] [log] [blame]
Michal Zegan1ec19b02019-04-30 14:52:13 +02001---
2- name: "Set cluster_ip"
3 hosts: all
4 tasks:
5 - name: "Set cluster_ip fact"
6 set_fact:
7 cluster_ip: "{{ ansible_default_ipv4.address }}"
8
9- name: Configure kubernetes cluster (RKE)
10 hosts: infrastructure
11 roles:
12 - role: rke
13 vars:
14 mode: config
15
16- name: Prepare kubernetes nodes (RKE)
17 hosts:
18 - kubernetes
19 - kubernetes-control-plane
20 roles:
21 - role: rke
22 vars:
23 mode: node
24
25- name: Deploy kubernetes cluster (RKE)
26 hosts: infrastructure
27 roles:
28 - role: rke
29 vars:
30 mode: deploy