From ce4dacf63209fe26db0ea5f462219359ef4b41ff Mon Sep 17 00:00:00 2001 From: Michael Porter <599168+michaelpporter@users.noreply.github.com> Date: Sun, 23 Sep 2018 14:58:52 -0500 Subject: [PATCH] Supports check of wildcard certs Adds support to check for wildcard certs to not re-make them on subsequent runs --- tasks/create-cert-standalone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/create-cert-standalone.yml b/tasks/create-cert-standalone.yml index b92faec..65c43bc 100644 --- a/tasks/create-cert-standalone.yml +++ b/tasks/create-cert-standalone.yml @@ -1,7 +1,7 @@ --- - name: Check if certificate already exists. 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 - name: Stop services to allow certbot to generate a cert.