The role used .yaml while the molecule scenario used .yml, because molecule hard codes molecule.yml and has no fallback for the other extension. Aligning all files on .yml keeps the extension consistent across the repository and avoids surprises when a tool only supports one of both spellings. Co-authored-by: Copilot <copilot@github.com>
21 lines
720 B
YAML
21 lines
720 B
YAML
---
|
|
|
|
- name: Import private key of root Certificate Authority (CA)
|
|
ansible.builtin.copy:
|
|
content: "{{ certificate_authority_root_ca_tls_key_content }}"
|
|
dest: "{{ certificate_authority_root_ca_path }}/privkey.pem"
|
|
owner: root
|
|
group: root
|
|
mode: "0600"
|
|
when: certificate_authority_root_ca_tls_key_content | length > 0
|
|
|
|
- name: Import certificate of root Certificate Authority (CA)
|
|
ansible.builtin.copy:
|
|
content: "{{ certificate_authority_root_ca_tls_crt_content }}"
|
|
dest: "{{ certificate_authority_root_ca_path }}/cert.pem"
|
|
owner: "root"
|
|
group: "root"
|
|
mode: "0644"
|
|
notify: Update systems SSL/TLS trust store
|
|
when: certificate_authority_root_ca_tls_crt_content | length > 0
|