mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2026-08-26 09:31:26 +02:00
Checks if domain names are given
This commit is contained in:
@@ -6,6 +6,12 @@
|
||||
- "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:
|
||||
|
||||
Reference in New Issue
Block a user