Allow overriding /etc/letsencrypt location

This commit is contained in:
Márton Salomváry
2020-05-29 11:05:00 +02:00
parent 919c2ba7b5
commit 24580c85d2
3 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
---
- name: Check if certificate already exists.
stat:
path: /etc/letsencrypt/live/{{ cert_item.domains | first | replace('*.', '') }}/cert.pem
path: "{{ certbot_etc }}/live/{{ cert_item.domains | first | replace('*.', '') }}/cert.pem"
register: letsencrypt_cert
- name: Stop services to allow certbot to generate a cert.