Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

fix: properly check if the ssl variables are set #41

Merged
merged 1 commit into from
Jul 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tasks/ssl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down