-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.yaml
More file actions
80 lines (74 loc) · 1.77 KB
/
Copy pathdeploy.yaml
File metadata and controls
80 lines (74 loc) · 1.77 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
- name: Gather information
hosts: all
gather_facts: false
any_errors_fatal: true
tasks:
- name: Gather facts from first control plane node
ansible.builtin.setup:
delegate_to: '{{ groups["control_plane"][0] }}'
- name: Update all packages
hosts: all
become: true
gather_facts: true
any_errors_fatal: true
tasks:
- name: Update package information
ansible.builtin.apt:
update_cache: true
- name: Upgrade packages
ansible.builtin.apt:
upgrade: dist
- name: Configure Tailscale
hosts: tailscale
become: true
gather_facts: true
any_errors_fatal: true
tags: tailscale
tasks:
- name: Execute Tailscale role
ansible.builtin.import_role:
name: tailscale
- name: Roll out RKE2 on first control plane node
hosts: control_plane[0]
become: true
gather_facts: true
any_errors_fatal: true
tags: rke2
tasks:
- name: Install and start RKE2
ansible.builtin.import_role:
name: rke2
- name: Install RKE2 on all remaining nodes
hosts: control_plane[1:]:data_plane
become: true
gather_facts: true
any_errors_fatal: true
tags: rke2
tasks:
- name: Install RKE2
ansible.builtin.import_role:
name: rke2
tasks_from: install
- name: Start up remaining RKE2 control plane nodes one by one
hosts: control_plane[1:]
become: true
gather_facts: true
any_errors_fatal: true
tags: rke2
serial: 1
tasks:
- name: Start RKE2
ansible.builtin.import_role:
name: rke2
tasks_from: start
- name: Start up RKE2 data plane in parallel
hosts: data_plane
become: true
gather_facts: true
any_errors_fatal: true
tags: rke2
tasks:
- name: Start RKE2
ansible.builtin.import_role:
name: rke2
tasks_from: start