From ff72eb349b17b27fb53ffe0d7a1db3f039611cdd Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Thu, 27 Dec 2018 11:29:33 +0100
Subject: [PATCH] Prepare apache for letsencrypt challenge webroot

---
 tasks/renew.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tasks/renew.yml b/tasks/renew.yml
index 702d104..67cd4a7 100644
--- a/tasks/renew.yml
+++ b/tasks/renew.yml
@@ -19,7 +19,8 @@
     state: 'present'
 
 - name: "Renew Existing Certs"
-  shell: certbot renew --non-interactive --http-01-port {{ port }} --preferred-challenges http-01
+  #shell: certbot renew --non-interactive --http-01-port {{ port }} --preferred-challenges http-01
+  shell: certbot renew --non-interactive --webroot-path /var/www/html --webroot
   ignore_errors: true
   register: renew_result
   changed_when: "'No renewals were attempted.' not in renew_result.stdout"
-- 
GitLab