andreaswolf / ansible-role-letsencrypt

Ansible role for generating certificates with acme-tiny via Let’s encrypt
46 stars 20 forks source link

Adding multidomain certificates and more #1

Closed tgagor closed 8 years ago

tgagor commented 8 years ago

Hi,

I really liked your role and how it's simpler than original letsencrypt script.

I needed multidomain certificates and other features so:

  - name: "example.com"
    keypath: "{{ letsencrypt_keys_dir }}/example.com.key"
    certpath: "{{ letsencrypt_certs_dir }}/example.com.crt"
    multiple: true
    hosts:
      - example.com
      - www.example.com
  - name: "blog.example.com"
    keypath: "{{ letsencrypt_keys_dir }}/blog.example.com.key"
    certpath: "{{ letsencrypt_certs_dir }}/blog.example.com.crt"
    host: blog.example.com

this could probably be done better (without multiple variable - just checking for host/hosts variables but it was working fine and I didn't find time to fix this)

Use it if you want :)

andreaswolf commented 8 years ago

I think this has mostly been integrated already, therefore I’m closing this PR. Thanks for bringing the topic up, tgagor :)