diff options
Diffstat (limited to 'roles/x509/static-ca/cert/prepare/tasks/main.yml')
-rw-r--r-- | roles/x509/static-ca/cert/prepare/tasks/main.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/x509/static-ca/cert/prepare/tasks/main.yml b/roles/x509/static-ca/cert/prepare/tasks/main.yml index 538bb58d..9a8d1bde 100644 --- a/roles/x509/static-ca/cert/prepare/tasks/main.yml +++ b/roles/x509/static-ca/cert/prepare/tasks/main.yml @@ -84,12 +84,18 @@ - restart services for x509 certificates register: _static_ca_cert_ +- name: install CA certificate + copy: + content: "{{ static_ca_cert_config.ca.cert_content }}" + dest: "{{ static_ca_cert_path }}/{{ static_ca_cert_name }}-ca-crt.pem" + - name: export paths to certificate files set_fact: x509_certificate_path_key: "{{ static_ca_cert_path }}/{{ static_ca_cert_name }}-key.pem" x509_certificate_path_cert: "{{ static_ca_cert_path }}/{{ static_ca_cert_name }}-crt.pem" x509_certificate_path_chain: "" x509_certificate_path_fullchain: "{{ static_ca_cert_path }}/{{ static_ca_cert_name }}-crt.pem" + x509_certificate_path_ca_cert: "{{ static_ca_cert_path }}/{{ static_ca_cert_name }}-ca-crt.pem" - name: generate custom post-renewal script when: x509_certificate_renewal is defined |