mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2026-08-25 01:05:36 +02:00
explicitly determine whether the domain list has changed
This commit is contained in:
+5
-3
@@ -6,6 +6,7 @@ certbot_auto_renew_hour: "3"
|
||||
certbot_auto_renew_minute: "30"
|
||||
certbot_auto_renew_options: "--quiet"
|
||||
|
||||
certbot_expand: true
|
||||
certbot_testmode: false
|
||||
certbot_hsts: false
|
||||
|
||||
@@ -14,13 +15,13 @@ certbot_hsts: false
|
||||
certbot_create_if_missing: false
|
||||
certbot_create_method: standalone
|
||||
certbot_admin_email: email@example.com
|
||||
certbot_expand: false
|
||||
|
||||
# Default webroot, overwritten by individual per-cert webroot directories
|
||||
certbot_webroot: /var/www/letsencrypt
|
||||
|
||||
certbot_certs: []
|
||||
# - email: janedoe@example.com
|
||||
# - name: example.com
|
||||
# email: janedoe@example.com
|
||||
# webroot: "/var/www/html/"
|
||||
# domains:
|
||||
# - example1.com
|
||||
@@ -40,8 +41,9 @@ 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('*.', '') ) }}
|
||||
--cert-name {{ cert_item_name }}
|
||||
-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'
|
||||
else '' }}
|
||||
|
||||
Reference in New Issue
Block a user