letsencrypt/tasks/cert.yml

8 lines
369 B
YAML

---
- name: '[CERT] - Generate or renew certificates'
command: /usr/bin/certbot certonly --rsa-key-size {{ letsencrypt_rsa_kaysize }} --agree-tos --keep-until-expiring --non-interactive --webroot --webroot-path {{ letsencrypt_webroot_path }} -m {{ letsencrypt_email }} --domains {{ item.name }}
with_items: "{{ letsencrypt_domains }}"
notify:
- reload nginx