Skip to content

Commit 20d5ef3

Browse files
committed
Enable automatic LE cert renewal
1 parent 01b1fb0 commit 20d5ef3

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

ansible/inventory

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
[openbsd_70]
1+
[openbsd_73]
22
192.168.20.254
3+
gateway.wordspeak.org
34
45.77.238.164
45

56
[firewalls]
67
192.168.20.254
8+
gateway.wordspeak.org
79

810
[wordspeak]
911
45.77.238.164

ansible/roles/nginx_wordspeak.org/tasks/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@
8282
path: /etc/acme-client.conf
8383
line: 'include "/etc/acme-client.wordspeak-org.conf"'
8484

85+
- name: Schedule acme-client run via cron
86+
cron:
87+
name: Attempt to renew and apply new LE cert
88+
special_time: weekly
89+
job: acme-client -v wordspeak.org && rcctl restart nginx
90+
8591
- name: copy wordspeak.org nginx config
8692
template:
8793
src: wordspeak-org.conf.j2

0 commit comments

Comments
 (0)