From 358b5cee1235e0953b68b2290b959fc831c206c8 Mon Sep 17 00:00:00 2001 From: "Philip (a-0)" <@ph:a-0.me> Date: Fri, 22 Jul 2022 01:02:38 +0200 Subject: [PATCH] explicitly added nginx parameter --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 16f8aa8..0614baa 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -63,7 +63,7 @@ register: live_cert - name: Obtain certificate - shell: certbot certonly --rsa-key-size 4096 {% for domain in certbot_domains %}-d {{ domain }} {% endfor %}-m {{ certbot_mail_address }} --agree-tos + shell: certbot certonly --nginx --rsa-key-size 4096 {% for domain in certbot_domains %}-d {{ domain }} {% endfor %}-m {{ certbot_mail_address }} --agree-tos when: live_cert.stat.exists == False - name: Execute post-renewal script if desired