Add letsencrypt-renew.sh and copy of renewal script
This commit is contained in:
parent
baf17287a7
commit
e3090a4395
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
service nginx stop
|
||||||
|
letsencrypt renew
|
||||||
|
service nginx start
|
|
@ -26,3 +26,8 @@
|
||||||
state: link
|
state: link
|
||||||
- name: Start nginx
|
- name: Start nginx
|
||||||
service: name=nginx state=started
|
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