add posibility to set a cert name

This commit is contained in:
vincent
2019-09-15 15:46:15 +02:00
parent a49d4e63a1
commit 750597f8fd
2 changed files with 3 additions and 2 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: /etc/letsencrypt/live/{% if certbot_cert_name %}{{certbot_cert_name}}{% else %}{{ cert_item.domains | first | replace('*.', '') }}{% endif %}/cert.pem
register: letsencrypt_cert
- name: Stop services to allow certbot to generate a cert.