File tree 2 files changed +15
-2
lines changed
2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 3
3
lovelace :
4
4
ansible_host : lovelace.box.pydis.wtf
5
5
wireguard_subnet : 10.2.0.0/16
6
+ certbot_reload_services :
7
+ - dovecot
8
+ - postfix@-
6
9
ldap01 :
7
10
ansible_host : ldap01.box.pydis.wtf
8
11
wireguard_subnet : 10.3.0.0/16
Original file line number Diff line number Diff line change 76
76
- role::certbot
77
77
78
78
79
- - name : Reload nginx after certificate renewal
79
+ # BEGIN temporary cleanup task
80
+ - name : Remove old hook file
81
+ ansible.builtin.file :
82
+ path : /etc/letsencrypt/renewal-hooks/deploy/reload-nginx
83
+ state : absent
84
+ # END temporary cleanup task
85
+
86
+ - name : Reload services after certificate renewal
80
87
ansible.builtin.copy :
81
88
content : |
82
89
#!/bin/sh
83
90
set -ex
84
91
85
92
systemctl reload nginx
86
- dest : /etc/letsencrypt/renewal-hooks/deploy/reload-nginx
93
+ {% if certbot_reload_services %}
94
+ systemctl reload {{ certbot_reload_services | join(" ") }}
95
+ {% endif %}
96
+ dest : /etc/letsencrypt/renewal-hooks/deploy/reload-services
87
97
owner : root
88
98
group : root
89
99
mode : " 0500"
You can’t perform that action at this time.
0 commit comments