Skip to content
Snippets Groups Projects
Verified Commit 1a3779c0 authored by Chris Croome's avatar Chris Croome
Browse files

Default to using EC cert for Exim

parent fe599bec
No related branches found
Tags 2.4.0
No related merge requests found
Pipeline #36276 passed
......@@ -21,7 +21,26 @@
path: "{{ apache_md_cert_cp.pubcert.src }}"
register: apache_md_cert_cp_pubcert_src
- name: Copy the private key and certificate when they exist
- name: Query OpenSSL X.509 certificate
block:
- name: "Query OpenSSL X.509 certificate {{ apache_md_cert_cp.privkey.src }}"
community.crypto.x509_certificate_info:
path: "{{ apache_md_cert_cp.pubcert.src }}"
register: apache_md_cert_cp_pubcert_info
- name: "Debug all the OpenSSL X.509 certificate info for {{ apache_md_cert_cp.privkey.src }}"
ansible.builtin.debug:
var: apache_md_cert_cp_pubcert_info
verbosity: "{% if ansible_check_mode | bool or ansible_diff_mode | bool %}0{% else %}1{% endif %}"
when:
- apache_md_cert_cp_privkey_src.stat.exists | bool
- apache_md_cert_cp_privkey_src.stat.size > 0
- apache_md_cert_cp_pubcert_src.stat.exists | bool
- apache_md_cert_cp_pubcert_src.stat.size > 0
- name: Copy the private key and certificate when they exist and the cert is valid
block:
- name: "Copy the Apache mod_md private key for {{ apache_md_cert_cp.name }}"
......@@ -87,6 +106,8 @@
- apache_md_cert_cp_privkey_src.stat.size > 0
- apache_md_cert_cp_pubcert_src.stat.exists | bool
- apache_md_cert_cp_pubcert_src.stat.size > 0
- not apache_md_cert_cp_pubcert_info.expired | bool
- not apache_md_cert_cp_pubcert_info.failed | bool
- name: "Crontab absent for Apache mod_md cert script absent for {{ apache_md_cert_cp.name }}"
ansible.builtin.cron:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment