Add --dry-run option to certbot command

This commit is contained in:
Christoph Schulthess 2019-08-23 09:58:39 +02:00
parent 7efc6a50f5
commit 9c26e13484

View File

@ -7,6 +7,7 @@ certbot_auto_renew_minute: 30
certbot_auto_renew_options: "--quiet --no-self-upgrade"
# Parameters used when creating new Certbot certs.
certbot_dry_run: false
certbot_create_if_missing: false
certbot_create_method: standalone
certbot_admin_email: email@example.com
@ -20,7 +21,7 @@ certbot_certs: []
certbot_create_command: >-
{{ certbot_script }} certonly --standalone --noninteractive --agree-tos
--email {{ cert_item.email | default(certbot_admin_email) }}
-d {{ cert_item.domains | join(',') }}
-d {{ cert_item.domains | join(',') }} {{ "--dry-run" if certbot_dry_run }}
certbot_create_standalone_stop_services:
- nginx