blob: 7e4029f863591411a65e1a6182252b50eb073c9c (
plain)
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
---
# ansible-playbook -u root -i 'hosts' --vault-id vaultkey playbooks/init.yaml --tags=vault
- name: 'Deploy Vault'
hosts: 'vault'
gather_facts: false
roles:
- role: 'base'
- role: 'docker'
- role: 'vault'
- role: 'caddy_add'
vars:
caddy_add_hosts: ['{{ vaultvar_vault_cname }}.{{ vaultvar_root_domain }}']
caddy_add_upstream_host: '{{ inventory_hostname }}'
caddy_add_upstream_port: 8989
# ansible-playbook -u root -i 'hosts' --vault-id vaultkey playbooks/init.yaml --tags=torrents
- name: 'Deploy Transmission'
hosts: 'torrents'
gather_facts: false
roles:
- role: 'base'
- role: 'torrents'
vars:
torrents_nas_mount_path: '{{ vaultvar_torrents_nas_nfs_path }}'
torrents_rpc_username: '{{ vaultvar_torrents_rpc_username }}'
torrents_rpc_password: '{{ vaultvar_torrents_rpc_password }}'
- role: 'caddy_add'
vars:
caddy_add_hosts: ['{{ vaultvar_torrents_cname }}.{{ vaultvar_root_domain }}']
caddy_add_upstream_host: '{{ inventory_hostname }}'
# ansible-playbook -u root -i 'hosts' --vault-id vaultkey playbooks/init.yaml --tags=med_dl
- name: 'Deploy Media Downloaders'
hosts: 'med-dl'
gather_facts: false
roles:
- role: 'base'
- role: 'docker'
- role: 'med_dl'
vars:
med_dl_nas_mount_path: '{{ vaultvar_med_dl_nas_nfs_path }}'
- role: 'caddy_add'
vars:
caddy_add_hosts: ['{{ vaultvar_sonarr_cname }}.{{ vaultvar_root_domain }}']
caddy_add_upstream_host: '{{ inventory_hostname }}'
caddy_add_upstream_port: 8989
- role: 'caddy_add'
vars:
caddy_add_hosts: ['{{ vaultvar_radarr_cname }}.{{ vaultvar_root_domain }}']
caddy_add_upstream_host: '{{ inventory_hostname }}'
caddy_add_upstream_port: 7878
# ansible-playbook -u root -i 'hosts' --vault-id vaultkey playbooks/init.yaml --tags=nextcloud
- name: 'Deploy Nextcloud'
hosts: 'nc'
gather_facts: false
roles:
- role: 'base'
- role: 'docker'
- role: 'nextcloud'
vars:
nextcloud_nas_mount_path: '{{ vaultvar_nextcloud_nas_nfs_path }}'
nextcloud_php_max_mem_mb: 8000
nextcloud_php_max_upload_size_gb: 10
# You should have DRI devices showing up in your container in `/dev/dri/`.
# See the TF readme for steps to enable this.
# If not, then set this to false here.
# Leave this as a yaml string, it is going to used as a shell var.
nextcloud_enable_dri: 'true'
- role: 'caddy_add'
vars:
caddy_add_hosts: ['{{ vaultvar_nextcloud_cname }}.{{ vaultvar_root_domain }}']
caddy_add_upstream_host: '{{ inventory_hostname }}'
caddy_add_upstream_port: 11000
# ansible-playbook -u root -i 'hosts' --vault-id vaultkey playbooks/init.yaml --tags=plex
- name: 'Deploy Plex'
hosts: 'plex'
gather_facts: false
roles:
- role: 'base'
- role: 'plex'
vars:
plex_nas_mount_path: '{{ vaultvar_plex_nas_nfs_path }}'
# ansible-playbook -u root -i 'hosts' --vault-id vaultkey playbooks/init.yaml --tags=monitoring
- name: 'Deploy Prometheus'
hosts: 'monitoring'
gather_facts: false
roles:
- role: 'base'
- role: 'monitoring'
- role: 'caddy_add'
vars:
caddy_add_hosts: ['{{ vaultvar_metrics_cname }}.{{ vaultvar_root_domain }}']
caddy_add_upstream_host: '{{ inventory_hostname }}'
caddy_add_upstream_port: 9090
|