forked from NatiSayada/k3s-proxmox-terraform-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsite.yml
72 lines (62 loc) · 1.17 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
- name: Preconfig Anible Host
hosts: localhost
gather_facts: no
connection: local
roles:
- role: preconfig/localhost
- name: Determine SSH port
hosts: all
gather_facts: no
roles:
- role: ssh
- name: OS Hardening Cluster
hosts: all
gather_facts: no
roles:
- role: hardening/os
become: yes
- name: Install Caching Server
hosts: cache
gather_facts: no
roles:
- caching
become: yes
- name: Config k3s VMs
hosts: k3s_cluster
roles:
- role: cluster/caching
- role: preconfig/raspberrypi
- role: cluster/prereq
- role: cluster/download
- role: hardening/cluster
become: yes
- name: Setup Master
hosts: master
roles:
- role: k3s/master
become: yes
- name: Setup Storage
hosts: storage
roles:
- role: k3s/storage
become: yes
- name: Setup Worker
hosts: worker
roles:
- role: k3s/worker
become: yes
- name: Postconfig
hosts: all
gather_facts: no
roles:
- role: postconfig/cluster
- name: Update Ansible Host
hosts: localhost
connection: local
roles:
- role: postconfig/localhost
- name: Deploy Helm Charts
hosts: localhost
connection: local
roles:
- role: helm/longhorn