Merge pull request #80 from wvh-github/feature/create_pre_and_post_hook

create pre and post hooks
This commit is contained in:
Jeff Geerling
2021-05-28 14:47:32 -05:00
committed by GitHub
4 changed files with 68 additions and 13 deletions
+6
View File
@@ -21,6 +21,12 @@ certbot_create_command: >-
{{ certbot_script }} certonly --standalone --noninteractive --agree-tos
--email {{ cert_item.email | default(certbot_admin_email) }}
-d {{ cert_item.domains | join(',') }}
{{ '--pre-hook /etc/letsencrypt/renewal-hooks/pre/stop_services'
if certbot_create_standalone_stop_services
else '' }}
{{ '--post-hook /etc/letsencrypt/renewal-hooks/post/start_services'
if certbot_create_standalone_stop_services
else '' }}
certbot_create_standalone_stop_services:
- nginx