roles/letsencrypt/tasks/main.yml in taperole-2.0.4 vs roles/letsencrypt/tasks/main.yml in taperole-2.0.5
- old
+ new
@@ -14,8 +14,8 @@
cron:
name: Certbot renew
weekday: 1
hour: 2
minute: 30
- job: /opt/letsencrypt/letsencrypt-auto renew --rsa-key-size 4096 --renew-hook "/usr/bin/monit restart nginx" >> /var/log/le-renew.log
+ job: /opt/letsencrypt/letsencrypt-auto renew --rsa-key-size 4096 --pre-hook "/usr/bin/monit stop nginx" --post-hook "/usr/bin/monit start nginx" >> /var/log/le-renew.log
user: root
when: letsencrypt.enabled == true