-
Notifications
You must be signed in to change notification settings - Fork 25
/
prod.yml
71 lines (64 loc) · 1.26 KB
/
prod.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
---
- name: sysadm
tags: sysadm
become: yes
hosts: all
roles:
- { role: sysadm }
- name: mariadb
tags: mariadb
become: yes
hosts: db
roles:
- { role: mariadb }
- name: puma
tags: puma
become: yes
hosts: www_worker
roles:
- { role: puma }
- name: certbot
tags: nginx
become: yes
hosts: www
roles:
- certbot
vars:
certbot_testmode: false
certbot_create_if_missing: true
certbot_admin_email: [email protected]
certbot_create_method: standalone
certbot_hsts: true
# the ubuntu certbot package added a systemd timer service
certbot_auto_renew: false
#certbot_auto_renew_user: root
#certbot_auto_renew_hour: "5"
#certbot_auto_renew_minute: "23"
certbot_create_standalone_stop_services:
- nginx
certbot_certs:
- email: [email protected]
webroot: "/srv/lobste.rs/http/public"
domains:
- lobste.rs
- www.lobste.rs
- lobsters.dev
- www.lobsters.dev
- name: nginx
tags: nginx
become: yes
hosts: www
roles:
- { role: nginx }
- name: postfix
tags: postfix
become: yes
hosts: mx:smtp
roles:
- { role: postfix }
- name: lobsters
tags: lobsters
become: yes
hosts: www_worker
roles:
- { role: lobsters }