diff --git a/tasks/main.yml b/tasks/main.yml index 08519ff..16f8aa8 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -63,7 +63,7 @@ register: live_cert - name: Obtain certificate - shell: certbot certonly --standalone --rsa-key-size 4096 {% for domain in certbot_domains %}-d {{ domain }} {% endfor %}-m {{ certbot_mail_address }} --agree-tos + shell: certbot certonly --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