-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.yml
48 lines (46 loc) · 790 Bytes
/
main.yml
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
- name: Prepare the servers.
hosts: all
become: true
gather_facts: false
roles:
- base
tags:
- base
- name: Setup WireGuard
hosts: vpn
roles:
- vpn
tags:
- vpn
- name: Setup k3s
hosts: k8s-cluster
roles:
- k3s
tags:
- k3s
# - name: Restart masters
# hosts: kube-master
# serial: 1
# become: true
# tags:
# - k3s
# tasks:
# - name: Restart k3s
# import_role:
# name: restart_k3s
# when:
# - restart_k3s is defined
# - restart_k3s
# - name: Restart workers
# hosts: kube-node
# serial: 1
# become: true
# tags:
# - k3s
# tasks:
# - name: Restart k3s
# import_role:
# name: restart_k3s
# when:
# - restart_k3s is defined
# - restart_k3s