blob: 20d34bd05531b3fc6d198180dbd5c39984e49b23 (
plain) (
blame)
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
|
---
- name: Basic Setup
hosts: ch-mimas
roles:
- role: apt-repo/base
- role: core/base
- role: core/sshd/base
- role: core/zsh
- role: core/ntp
post_tasks:
- name: create logical volume for storage zfs
lvol:
vg: "{{ host_name }}"
lv: storage
size: 20G
- name: Payload Setup
hosts: ch-mimas
roles:
- role: storage/zfs/pools
- role: storage/zfs/sanoid
- role: network/wireguard/base
- role: network/wireguard/p2p
- role: network/bind
- role: x509/acmetool/base
- role: apt-repo/spreadspace
- role: nginx/base
- role: monitoring/prometheus/exporter
- role: gitolite/base
- role: gitolite/http
tasks:
- name: create zfs volume for pub.chaos-at-home.org
vars:
zfs_volume:
pool: storage
name: pub
properties:
quota: 1G
'syncoid:sync': 'false'
include_role:
name: storage/zfs/volume
- name: configure nginx vhost for pub.chaos-at-home.org
vars:
nginx_vhost:
name: pub
template: generic
tls:
certificate_provider: acmetool
hostnames:
- pub.chaos-at-home.org
locations:
'/':
root: /srv/storage/pub
autoindex: {}
include_role:
name: nginx/vhost
|