Added option to not install the certificate
This commit is contained in:
parent
358b5cee12
commit
0fbb3d350b
2 changed files with 3 additions and 2 deletions
|
@ -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
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue