-
Notifications
You must be signed in to change notification settings - Fork 17
/
upgrade.yaml
49 lines (49 loc) · 1.17 KB
/
upgrade.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
---
- name: Cluster Upgrade
hosts: cluster
become: true
gather_facts: true
tasks:
- name: Roles Upgrade
ansible.builtin.include_role:
apply:
tags: '{{ upgrade.role }}'
name: '{{ upgrade.role }}'
tasks_from: '{{ upgrade.tasks }}'
loop:
- role: argocd
tasks: main
- role: argocd
tasks: postinstall
- role: certmanager
tasks: main
- role: certmanager
tasks: postinstall
- role: cilium
tasks: main
- role: cilium
tasks: postinstall
- role: cloudflare
tasks: main
- role: cloudflare
tasks: postinstall
- role: cluster
tasks: upgrade
- role: helm
tasks: main
- role: k3s
tasks: upgrade
- role: kured
tasks: main
- role: kured
tasks: postinstall
- role: longhorn
tasks: main
- role: prometheus
tasks: main
- role: prometheus
tasks: postinstall
loop_control:
loop_var: upgrade
tags: always
when: upgrade.role in ansible_run_tags