diff --git a/tasks/ssl.yml b/tasks/ssl.yml index 553791f..cb267a2 100644 --- a/tasks/ssl.yml +++ b/tasks/ssl.yml @@ -9,7 +9,7 @@ mode: 0640 owner: root group: root - when: zammad_ssl_key is defined or zammad_ssl_key|length > 0 + when: zammad_ssl_key | default('') | length > 0 - name: SSL | Insert certificate ansible.builtin.blockinfile: @@ -20,7 +20,7 @@ mode: 0644 owner: root group: root - when: zammad_ssl_cert is defined or zammad_ssl_cert|length > 0 + when: zammad_ssl_cert | default('') | length > 0 - name: SSL | Check if certificate is still valid, ignoring failures community.crypto.x509_certificate_info: