This commit is contained in:
lhahn committed 2024-11-27 22:34:45 +01:00
1 parent 4cd677e01c
commit f7be80008a
3 files changed
+16 -16

No files matched your search

+10 -10
View File
@@ -10,12 +10,12 @@
register: certbot_nginx_installation
- name: create letsencrypt account
command:
command:
cmd: |
certbot register
-m {{ letsencrypt_mail_address }}
--agree-tos
--noninteractive
-m {{ letsencrypt_mail_address }}
--agree-tos
--noninteractive
--redirect
when: certbot_nginx_installation.changed
@@ -31,12 +31,12 @@
- name: create let's-encrypt certificates for web web_sites
command:
cmd: |
certbot
--nginx
-d {% if cert_domain is not string and cert_domain is iterable %}{{ cert_domain | join(',') }}{% else %}{{ cert_domain }}{% endif %}
-m {{ letsencrypt_mail_address }}
--agree-tos
--noninteractive
certbot
--nginx
-d {% if cert_domain is not string and cert_domain is iterable %}{{ cert_domain | join(',') }}{% else %}{{ cert_domain }}{% endif %}
-m {{ letsencrypt_mail_address }}
--agree-tos
--noninteractive
--redirect
creates: "/etc/letsencrypt/live/{% if cert_domain is not string and cert_domain is iterable %}{{ cert_domain[0] }}{% else %}{{ cert_domain }}{% endif %}"
loop: "{{ web_sites | json_query('[?letsencrypt==`true`&&state==`present`].domain') }}"