-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yaml
55 lines (41 loc) · 1006 Bytes
/
main.yaml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
- name: Initial setup
hosts: nodes
gather_facts: false
tags: ['pi-initial-setup']
collections:
- community.general
roles:
- role: pi-initial-setup
- name: Configure the master node
hosts: master
gather_facts: false
tags: ['install-k3s-master']
roles:
- role: install-k3s-master
- name: Configure the worker nodes
hosts: workers
gather_facts: false
tags: ['install-k3s-workers']
roles:
- role: install-k3s-workers
- name: Configure NFS server
hosts: nfs
gather_facts: false
tags: ['install-nfs-server']
roles:
- role: install-nfs-server
- name: Configure cluster
hosts: master
gather_facts: true
collections:
- community.kubernetes
environment:
K8S_AUTH_KUBECONFIG: /etc/rancher/k3s/k3s.yaml
roles:
- role: basic-cluster-setup
tags: ['basic-cluster-setup']
- role: install-cert-manager
tags: ['install-cert-manager']
- role: install-monitoring
tags: ['install-monitoring']