Skip to content

Instantly share code, notes, and snippets.

@vladdancer
Created October 8, 2020 10:38
Show Gist options
  • Save vladdancer/a5b3e9fd181ae66f6ee7aedb5a2c7a1d to your computer and use it in GitHub Desktop.
Save vladdancer/a5b3e9fd181ae66f6ee7aedb5a2c7a1d to your computer and use it in GitHub Desktop.
Debian 10 Certbot cron task to prolongate certificate
#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
@vladdancer
Copy link
Author

Use crontab -e to add changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment