Browse Source

Merge branch 'wip-certbot' into 'master'

certificate: retry certbot during 2h

Closes #314

See merge request main/infrastructure!408
keep-around/b6c6bdcd9378efe027c700a97ba04ae99366c714
Loïc Dachary 7 months ago
parent
commit
b6c6bdcd93
  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