Supports check of wildcard certs

Adds support to check for wildcard certs to not re-make them on subsequent runs
pull/60/head
Michael Porter 6 years ago committed by GitHub
parent 3f1a802d71
commit ce4dacf632
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tasks/create-cert-standalone.yml

@ -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.

Loading…
Cancel
Save