|
|
|
@ -40,6 +40,7 @@ certbot_create_command: >- |
|
|
|
|
{{ '--webroot-path ' if certbot_create_method == 'webroot' else '' }} |
|
|
|
|
{{ cert_item.webroot | default(certbot_webroot) if certbot_create_method == 'webroot' else '' }} |
|
|
|
|
{{ certbot_create_extra_args }} |
|
|
|
|
--cert-name {{ cert_item.name | default(cert_item.domains | first | replace('*.', '') ) }} |
|
|
|
|
-d {{ cert_item.domains | join(',') }} |
|
|
|
|
{{ '--pre-hook /etc/letsencrypt/renewal-hooks/pre/stop_services' |
|
|
|
|
if certbot_create_standalone_stop_services and certbot_create_method == 'standalone' |
|
|
|
@ -47,6 +48,9 @@ certbot_create_command: >- |
|
|
|
|
{{ '--post-hook /etc/letsencrypt/renewal-hooks/post/start_services' |
|
|
|
|
if certbot_create_standalone_stop_services and certbot_create_method == 'standalone' |
|
|
|
|
else '' }} |
|
|
|
|
{{ '--deploy-hook \'' + cert_item.deploy_hook + '\'' |
|
|
|
|
if 'deploy_hook' in cert_item |
|
|
|
|
else '' }} |
|
|
|
|
|
|
|
|
|
certbot_create_standalone_stop_services: |
|
|
|
|
- nginx |
|
|
|
|