alpine: assume one DNS name per host

Avoid needless complexity.
This commit is contained in:
Timotej Lazar 2024-06-19 13:14:51 +02:00
parent 393614aa79
commit 38c3464279
5 changed files with 12 additions and 22 deletions

View file

@ -26,9 +26,8 @@
- name: Get LE certificate
command:
cmd: certbot certonly --non-interactive --agree-tos --register-unsafely-without-email --webroot --webroot-path /srv/http -d {{ item }}
creates: '/etc/letsencrypt/renewal/{{ item }}.conf'
loop: '{{ fqdns }}'
cmd: certbot certonly --non-interactive --agree-tos --register-unsafely-without-email --webroot --webroot-path /srv/http -d {{ dns_name }}
creates: '/etc/letsencrypt/renewal/{{ dns_name }}.conf'
- name: Enable certbot renewal
cron: