Created
October 8, 2020 10:38
-
-
Save vladdancer/a5b3e9fd181ae66f6ee7aedb5a2c7a1d to your computer and use it in GitHub Desktop.
Debian 10 Certbot cron task to prolongate certificate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Ansible: Certbot automatic renewal. | |
*/3 * * * * (/opt/certbot/certbot-auto renew --quiet --no-self-upgrade --pre-hook "/bin/systemctl stop nginx" --post-hook "/bin/systemctl start nginx") >> /var/log/certbotcron.log 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use
crontab -e
to add changes