mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-04-19 17:01:37 +02:00
change default certbot_create_command to include pre and post hook
This commit is contained in:
parent
34e8a70c1d
commit
c7916294e1
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user