From 9c26e13484383bcfe11d3a3db89d5a8a1efdbf38 Mon Sep 17 00:00:00 2001 From: Christoph Schulthess Date: Fri, 23 Aug 2019 09:58:39 +0200 Subject: [PATCH] Add --dry-run option to certbot command --- defaults/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 3186d8e..19d62d4 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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