geerlingguy / ansible-role-certbot

Ansible Role - Certbot (for Let's Encrypt)
https://galaxy.ansible.com/geerlingguy/certbot/
MIT License
793 stars 348 forks source link

Renewal hooks support #149

Closed tobias-richter closed 3 years ago

tobias-richter commented 3 years ago

Add support for renewal hooks contributed by @funkyfuture and @tomasbedrich

see also #80

tobias-richter commented 3 years ago

Closing this since the problem and the solution is more complex than initially thought.

I recommend to adjust certbot_auto_renew_options instead, example:

certbot_auto_renew_options: '--quiet --no-self-upgrade --pre-hook "service apache2 stop" --post-hook "service apache2 start"'