Add letsencrypt-renew.sh and copy of renewal script

This commit is contained in:
staticsafe 2017-11-26 18:24:45 -05:00
parent baf17287a7
commit e3090a4395
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
service nginx stop
letsencrypt renew
service nginx start

View File

@ -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