blob: 98b8d13661120500e3591c57c891418f88327d6a (
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
|
- import_role:
name: jail
tasks_from: jail_setup
- name: Deploy pf.conf
template:
src: "{{ jail_role_dir }}/templates/etc_pf.conf.j2"
dest: /etc/pf.conf
owner: root
group: wheel
mode: "0644"
notify: Reload pf
- name: Deploy nginx config
template:
src: "{{ jail_role_dir }}/templates/usr_local_etc_nginx_nginx.conf.j2"
dest: /usr/local/etc/nginx/nginx.conf
owner: root
group: wheel
mode: "0644"
notify: Reload nginx
- name: Check if TLS certs exist
stat:
path: "/usr/local/etc/letsencrypt/live/{{ cert_name }}"
register: _certbot_certs
when: is_prod
- name: Pause for manual certbot setup
pause:
prompt: "Run certbot manually in the ingress jail to obtain certs, then press Enter."
when: is_prod and not (_certbot_certs.stat.exists | default(true))
- import_role:
name: jail
tasks_from: jail_launch
|