Skip to content
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
8 changes: 4 additions & 4 deletions roles/zammad/tasks/ssl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@
- name: "SSL | Check if certificate is still valid, ignoring failures"
community.crypto.x509_certificate_info:
path: "{{ zammad_ssl_cert_path }}"
register: "certificate"
register: "__certificate"
ignore_errors: "{{ ansible_check_mode }}"

- name: "SSL | Ensure certificate and private key match"
community.crypto.openssl_privatekey_info:
path: "{{ zammad_ssl_key_path }}"
register: "private_key"
register: "__private_key"
ignore_errors: "{{ ansible_check_mode }}"

- name: "SSL | Validate that certificate is still valid"
ansible.builtin.assert:
that:
- "not certificate.expired"
- "certificate.public_key == private_key.public_key"
- "not __certificate.expired"
- "__certificate.public_key == __private_key.public_key"

...