From b37af735003b0e4dbc9f07223ab91ac102cac8ac Mon Sep 17 00:00:00 2001 From: Simon Spannagel Date: Fri, 7 Feb 2020 19:00:42 +0100 Subject: [PATCH] Move webroot definition further down --- defaults/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index acebe0e..8f32634 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -25,12 +25,12 @@ certbot_certs: [] certbot_create_command: >- {{ certbot_script }} certonly --{{ certbot_create_method }} - {{ '-w ' if certbot_create_method == 'webroot' else '' }} - {{ cert_item.webroot if certbot_create_method == 'webroot' else '' }} {{ '--hsts' if certbot_hsts else '' }} {{ '--test-cert' if certbot_testmode else '' }} --noninteractive --agree-tos --email {{ cert_item.email | default(certbot_admin_email) }} + {{ '--webroot-path ' if certbot_create_method == 'webroot' else '' }} + {{ cert_item.webroot if certbot_create_method == 'webroot' else '' }} -d {{ cert_item.domains | join(',') }} {{ '--pre-hook /etc/letsencrypt/renewal-hooks/pre/stop_services' if certbot_create_standalone_stop_services