Browse Source

certificate: retry certbot during 2h

Fixes: main/infrastructure#314
keep-around/2393510cc966a33e1b36d456c7077fb4fd95e3e4
Loïc Dachary 7 months ago
committed by some
parent
commit
2393510cc9
Signed by: dachary GPG Key ID: 992D23B392F9E4F2
  1. 5
      playbooks/certificate/roles/certificate/tasks/certificate.yml

5
playbooks/certificate/roles/certificate/tasks/certificate.yml

@ -30,6 +30,11 @@
--{{ certificate_installer | default('standalone') }}
{% if certificate_authority == "letsencrypt_staging" %}--test-cert{% endif %}
certonly
register: certbot
until: certbot is success
# 2h may seem a very large number of retries but sometimes DNS propagation take really long
retries: 120
delay: 60
- name: ln -s /etc/letsencrypt/live/{{ certificate_fqdn }}/privkey.pem {{ certificate_directory }}/{{ certificate_fqdn }}.key
file:

Loading…
Cancel
Save