Added option to not install the certificate

This commit is contained in:
Philip (a-0) 2022-07-22 01:04:56 +02:00
parent 358b5cee12
commit 0fbb3d350b
2 changed files with 3 additions and 2 deletions

View file

@ -2,3 +2,4 @@
certbot_os_supported: False certbot_os_supported: False
certbot_immediately_execute_script: True certbot_immediately_execute_script: True
certbot_install_cert: True

View file

@ -63,7 +63,7 @@
register: live_cert register: live_cert
- name: Obtain certificate - name: Obtain certificate
shell: certbot certonly --nginx --rsa-key-size 4096 {% for domain in certbot_domains %}-d {{ domain }} {% endfor %}-m {{ certbot_mail_address }} --agree-tos shell: certbot {% if not certbot_install_cert %}certonly{% endif %} --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 when: live_cert.stat.exists == False
- name: Execute post-renewal script if desired - name: Execute post-renewal script if desired