add --cert-name and --deploy-hook options

pull/230/head
Florian R. Hölzlwimmer 3 days ago committed by Florian R. Hölzlwimmer
parent e5bfeaf936
commit 811fa11044
  1. 4
      defaults/main.yml

@ -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

Loading…
Cancel
Save