Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

Commit

Permalink
add support for server aliases with letsencrypt
Browse files Browse the repository at this point in the history
  • Loading branch information
duck-rh authored and mscherer committed Jun 14, 2017
1 parent b7b9b90 commit 41564df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/letsencrypt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#TODO run the code as a untrusted user
- name: Run the letsencrypt query
command: certbot --text --renew-by-default --rsa-key-size 3072 --email root+lets-{{ _website_domain }}@{{ mail_domain | default(ansible_domain) }} --domains {{ _website_domain }} --agree-tos --webroot --webroot-path {{ letsencrypt_root }} certonly
command: "certbot --text --renew-by-default --rsa-key-size 3072 --email root+lets-{{ _website_domain }}@{{ mail_domain | default(ansible_domain) }} --domains {{ _website_domain }}{% for item in server_aliases %},{{ item }}{% endfor %} --agree-tos --webroot --webroot-path {{ letsencrypt_root }} certonly"
args:
creates: "/etc/letsencrypt/live/{{ _website_domain }}/privkey.pem"

Expand Down

0 comments on commit 41564df

Please sign in to comment.