-
Notifications
You must be signed in to change notification settings - Fork 1
/
playbook.yml
63 lines (51 loc) · 846 Bytes
/
playbook.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
##
# Set sysctl values and create users
##
- hosts: all, !localhost
roles:
- prepare
- users
tags: prepare
##
# Update DNS records
##
- hosts: localhost, nginx # nginx host included to get ansible fact for IP address
roles:
- cloudflare-dns
tags: cloudflare-dns
##
# Create Wireguard VPN tunnel between Hetzner VPS and cluster
##
- hosts: step, localhost # Localhost to write wg-quick configs
roles:
- wireguard
tags: wireguard
##
# Set up Nginx reverse proxy. Forwards traffic
##
- hosts: nginx
roles:
- nginx
tags: nginx
##
# Set up K3S cluster
##
- hosts: k3s
roles:
- k3s-cluster
tags: cluster
##
# Wait
##
- hosts: localhost
tasks:
- name: Wait betweend K3S install and deployment
pause:
seconds: 10
##
# Deploy to cluster
##
- hosts: localhost
roles:
- k3s-deploy
tags: deploy