Supports check of wildcard certs

Adds support to check for wildcard certs to not re-make them on subsequent runs
This commit is contained in:
Michael Porter 2018-09-23 14:58:52 -05:00 committed by GitHub
parent 3f1a802d71
commit ce4dacf632
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
--- ---
- name: Check if certificate already exists. - name: Check if certificate already exists.
stat: stat:
path: /etc/letsencrypt/live/{{ cert_item.domains | first }}/cert.pem path: /etc/letsencrypt/live/{{ cert_item.domains | first | replace('*.', '') }}/cert.pem
register: letsencrypt_cert register: letsencrypt_cert
- name: Stop services to allow certbot to generate a cert. - name: Stop services to allow certbot to generate a cert.