mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-07-05 15:01:35 +02:00
22 lines
590 B
YAML
22 lines
590 B
YAML
---
|
|
|
|
- name: Make sure we have an email
|
|
assert:
|
|
that:
|
|
- "certbot_register_email != ''"
|
|
msg: "You need to provide an email address you own to register with Let's Encrypt."
|
|
|
|
- name: Make sure we have domains
|
|
assert:
|
|
that:
|
|
- "certbot_domains != []"
|
|
msg: "You need to provide at least one domain to generate certificates for."
|
|
|
|
- name: Register with Let's Encrypt
|
|
command: "{{ certbot_register_command }}"
|
|
args:
|
|
creates: /etc/letsencrypt/accounts
|
|
|
|
- name: Generate certificates
|
|
command: "{{ certbot_cert_command }} -d {{ certbot_domains | join(' -d ') }}"
|