Skip to content
Snippets Groups Projects
Commit 229fd0ec authored by jurgenhaas's avatar jurgenhaas
Browse files

Allow to deactivate letsencrypt certs, i.e. while DNS is not available yet

parent bd449df1
No related branches found
No related tags found
No related merge requests found
......@@ -7,5 +7,6 @@
dest='/etc/haproxy/certs/{{ item.domain }}.pem'
regexp='(fullchain)|(privkey)\.pem'
with_items: '{{ proxy_certificates_letsencrypt|default([]) }}'
when: item.active|default(true)
notify:
- "Restart HAProxy"
......@@ -20,6 +20,7 @@
with_items: '{{ proxy_certificates_letsencrypt|default([]) }}'
loop_control:
loop_var: domain
when: domain.active|default(true)
- name: "Renew Existing Cert"
include: '../../letsencrypt/tasks/renew.yml'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment