Added option to immediately execute renewal script

This commit is contained in:
Philip (a-0) 2022-07-22 00:45:12 +02:00
parent aa9e1b2346
commit f3b37d3934
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,4 @@
--- ---
certbot_os_supported: False certbot_os_supported: False
certbot_immediately_execute_script: True

View file

@ -59,4 +59,8 @@
- name: Obtain certificate - 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 --standalone --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
shell: "{{ certbot_renewal_scripts_path }}{{ certbot_domains[0] }}.sh"
when: certbot_immediately_execute_script