-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.yml
83 lines (70 loc) · 2.23 KB
/
deploy.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
79
80
81
82
83
# Playbooks
- name: Include vars
ansible.builtin.import_playbook: playbooks/include_vars.yml
- name: Run pre-check
ansible.builtin.import_playbook: playbooks/pre_check.yml
# Roles
## Servers
- name: Run Common Roles
hosts: servers
gather_facts: false
roles:
- role: common
become: true
vars:
ssh_config: "{{ ssh }}"
ssh_user: "{{ ssh_user }}"
ssh_password: "{{ ssh_password }}"
ssh_public_key: "{{ ssh_public_key }}"
ufw_config: "{{ ufw }}"
- name: Run pre-check
ansible.builtin.import_playbook: playbooks/pre_check.yml
## Homelab
- name: Run Homelab Roles
hosts: homelab
gather_facts: false
roles:
- role: common
become: true
vars:
docker_config: "{{ docker }}"
caddy_config: "{{ caddy }}"
caddy_domain: "{{ caddy_domain }}"
caddy_cloudflare_email: "{{ caddy_cloudflare_email }}"
caddy_cloudflare_token: "{{ caddy_cloudflare_token }}"
- role: docker
become: true
vars:
docker_user_uid: "{{ docker_user_uid }}"
docker_user_gid: "{{ docker_user_gid }}"
docker_tz: "{{ docker_tz }}"
filebrowser: "{{ filebrowser }}"
transmission: "{{ transmission }}"
flame: "{{ flame }}"
pihole: "{{ pihole }}"
pihole_password: "{{ pihole_password }}"
jellyfin: "{{ jellyfin }}"
watchtower: "{{ watchtower }}"
watcharr: "{{ watcharr }}"
duplicati: "{{ duplicati }}"
duplicati_password: "{{ duplicati_password }}"
twitch_channel_points_miner_v2: "{{ twitch_channel_points_miner_v2 }}"
amule: "{{ amule }}"
registry: "{{ registry }}"
vikunja: "{{ vikunja }}"
vikunja_jwt_token: "{{ vikunja_jwt_token }}"
goatcounter: "{{ goatcounter }}"
goatcounter_domain: "{{ goatcounter_domain }}"
goatcounter_email: "{{ goatcounter_email }}"
goatcounter_password: "{{ goatcounter_password }}"
goatcounter_cloudflared_token: "{{ goatcounter_cloudflared_token }}"
## Tailscale
- name: Run Tailscale Role
hosts: tailscale
gather_facts: true
become: true
roles:
- role: tailscale
become: true
vars:
auth_key: "{{ tailscale_auth_key }}"