Also check if matrix_ssl_lets_encrypt_support_email is blank

This commit is contained in:
Aaron Raimist 2021-03-17 00:54:00 -05:00
parent 97c0bf1a73
commit 466827139a
No known key found for this signature in database
GPG key ID: 37419210002890EF

View file

@ -40,8 +40,8 @@
- name: Fail if required variables are undefined - name: Fail if required variables are undefined
fail: fail:
msg: "Detected an undefined required variable" msg: "The `{{ item }}` variable must be defined and have a non-null value"
with_items: with_items:
- "matrix_ssl_lets_encrypt_support_email" - "matrix_ssl_lets_encrypt_support_email"
when: "vars[item] is none" when: "vars[item] == '' or vars[item] is none"
when: "matrix_ssl_retrieval_method == 'lets-encrypt'" when: "matrix_ssl_retrieval_method == 'lets-encrypt'"