mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-04-19 17:01:37 +02:00
add --cert-name and --deploy-hook options
This commit is contained in:
parent
e5bfeaf936
commit
811fa11044
@ -40,6 +40,7 @@ certbot_create_command: >-
|
|||||||
{{ '--webroot-path ' if certbot_create_method == 'webroot' else '' }}
|
{{ '--webroot-path ' if certbot_create_method == 'webroot' else '' }}
|
||||||
{{ cert_item.webroot | default(certbot_webroot) if certbot_create_method == 'webroot' else '' }}
|
{{ cert_item.webroot | default(certbot_webroot) if certbot_create_method == 'webroot' else '' }}
|
||||||
{{ certbot_create_extra_args }}
|
{{ certbot_create_extra_args }}
|
||||||
|
--cert-name {{ cert_item.name | default(cert_item.domains | first | replace('*.', '') ) }}
|
||||||
-d {{ cert_item.domains | join(',') }}
|
-d {{ cert_item.domains | join(',') }}
|
||||||
{{ '--pre-hook /etc/letsencrypt/renewal-hooks/pre/stop_services'
|
{{ '--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 == 'standalone'
|
||||||
@ -47,6 +48,9 @@ certbot_create_command: >-
|
|||||||
{{ '--post-hook /etc/letsencrypt/renewal-hooks/post/start_services'
|
{{ '--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 == 'standalone'
|
||||||
else '' }}
|
else '' }}
|
||||||
|
{{ '--deploy-hook \'' + cert_item.deploy_hook + '\''
|
||||||
|
if 'deploy_hook' in cert_item
|
||||||
|
else '' }}
|
||||||
|
|
||||||
certbot_create_standalone_stop_services:
|
certbot_create_standalone_stop_services:
|
||||||
- nginx
|
- nginx
|
||||||
|
Loading…
x
Reference in New Issue
Block a user