Add letsencrypt-renew.sh and copy of renewal script
This commit is contained in:
parent
baf17287a7
commit
e3090a4395
4
roles/mastodon-nginx/files/letsencrypt-renew.sh
Normal file
4
roles/mastodon-nginx/files/letsencrypt-renew.sh
Normal file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
service nginx stop
|
||||
letsencrypt renew
|
||||
service nginx start
|
@ -26,3 +26,8 @@
|
||||
state: link
|
||||
- name: Start nginx
|
||||
service: name=nginx state=started
|
||||
- name: Copy and enable Let's Encrypt renew script
|
||||
copy:
|
||||
src: letsencrypt-renew.sh
|
||||
dest: /etc/cron.daily/letsencryt-renew.sh
|
||||
mode: 0700
|
||||
|
Loading…
Reference in New Issue
Block a user