pre/post services for nginx

This commit is contained in:
Victor Seva
2026-03-24 12:08:28 +01:00
parent 97e3fdc6ec
commit c5967d6b75
2 changed files with 53 additions and 3 deletions
+2 -2
View File
@@ -47,10 +47,10 @@ certbot_create_command: >-
-d {{ cert_item.domains | join(',') }}
{{ '--expand' if certbot_expand else '' }}
{{ '--pre-hook /etc/letsencrypt/renewal-hooks/pre/stop_services'
if certbot_create_standalone_stop_services and certbot_create_method == 'standalone'
if certbot_create_standalone_stop_services and certbot_create_method in ['standalone', 'nginx']
else '' }}
{{ '--post-hook /etc/letsencrypt/renewal-hooks/post/start_services'
if certbot_create_standalone_stop_services and certbot_create_method == 'standalone'
if certbot_create_standalone_stop_services and certbot_create_method in ['standalone', 'nginx']
else '' }}
{{ "--deploy-hook '" ~ cert_item.deploy_hook ~ "'"
if 'deploy_hook' in cert_item