Browse Source

roles/certbot: add alternate fqdns variable

python3
Zolfa 5 years ago
parent
commit
19f07539e0
Signed by: zolfa GPG Key ID: E1A43B038C4D6616
2 changed files with 4 additions and 0 deletions
  1. +1
    -0
      roles/certbot/defaults/main.yaml
  2. +3
    -0
      roles/certbot/tasks/main.yaml

+ 1
- 0
roles/certbot/defaults/main.yaml View File

@ -1,3 +1,4 @@
---
webserver_name: 'nginx'
certbot_site_alternate_fqdns: []
...

+ 3
- 0
roles/certbot/tasks/main.yaml View File

@ -26,6 +26,9 @@
--email {{ letsencrypt_email }}
--preferred-challenges http
-d {{ certbot_site_fqdn }}
{% for fqdn in certbot_site_alternate_fqdns %}
-d {{ fqdn }}
{% endfor %}
-n
args:
creates: '/etc/letsencrypt/live/{{ certbot_site_fqdn }}/cert.pem'


Loading…
Cancel
Save