change default certbot_create_command to include pre and post hook

This commit is contained in:
Wout van Heeswijk 2019-04-18 18:09:18 +02:00
parent 34e8a70c1d
commit c7916294e1

View File

@ -21,6 +21,8 @@ certbot_create_command: >-
{{ certbot_script }} certonly --standalone --noninteractive --agree-tos {{ certbot_script }} certonly --standalone --noninteractive --agree-tos
--email {{ cert_item.email | default(certbot_admin_email) }} --email {{ cert_item.email | default(certbot_admin_email) }}
-d {{ cert_item.domains | join(',') }} -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/stop_services if certbot_create_standalone_stop_services else '' }}
certbot_create_standalone_stop_services: certbot_create_standalone_stop_services:
- nginx - nginx