-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathsite.yml
78 lines (69 loc) · 1.62 KB
/
site.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
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
---
- name: Prepare Proxmox cluster
hosts: proxmox
gather_facts: true
become: yes
environment: "{{ proxy_env | default({}) }}"
roles:
- role: proxmox_lxc
when: proxmox_lxc_configure
- name: Prepare k3s nodes
hosts: k3s_cluster
gather_facts: yes
environment: "{{ proxy_env | default({}) }}"
roles:
- role: lxc
become: true
when: proxmox_lxc_configure
- role: prereq
become: true
- role: download
become: true
- role: raspberrypi
become: true
- role: k3s_custom_registries
become: true
when: custom_registries
- name: Setup k3s servers
hosts: master
environment: "{{ proxy_env | default({}) }}"
roles:
- role: k3s_server
become: true
- name: Setup k3s agents
hosts: node
environment: "{{ proxy_env | default({}) }}"
roles:
- role: k3s_agent
become: true
- name: Configure k3s cluster
hosts: master
environment: "{{ proxy_env | default({}) }}"
roles:
- role: k3s_server_post
become: true
- name: Deploy helm for traefik and rancher
hosts: master[0]
roles:
- role: helm
when: deploy_traefik or deploy_rancher | bool
- name: Deploy cert-manager
hosts: master[0]
roles:
- role: cert-manager
when: deploy_traefik or deploy_rancher | bool
- name: deploy traefik internal
hosts: master[0]
roles:
- role: traefik_internal
when: deploy_traefik | bool
- name: deploy traefik external
hosts: master[0]
roles:
- role: traefik_external
when: deploy_traefik | bool
- name: deploy rancher
hosts: master[0]
roles:
- role: rancher
when: deploy_rancher | bool