letsencrypt role

Let'sencrypt certificates

Tested with nginx

Not standalone! It's expected that you'll take care of forwarding traffic like this on port 80

location ~ /\.well-known/acme-challenge/ {
   root /var/www/letsencrypt/;
   index index.html index.htm;
   try_files $uri =404;
}

Example

letsencrypt_cert_list:
  - name: certificate1_fqdn
    mail: support@example.com

  - name: certificate2_fqdn
    altnames:
      - www.certificate2_fqdn
      - dev.certificate2_fqdn
    mail: support@example.com

  - name: certificate3_fqdn
    state: absent

NOTES:

Author Information

Jan Michalek