fix: use client path instead of certificate content as destination

The task importing the client certificate passed
`certificate_authority_client_tls_crt_content` to `dest`, so the PEM payload
itself was interpreted as a directory path. The certificate was written to a
bogus location derived from its own content instead of the configured client
directory. Use `certificate_authority_client_path` as destination, consistent
with the private key import above.

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-09-07 22:28:52 +02:00
co-authored by Copilot
parent 32bd44a0a6
commit 309c5e0e65
+1 -1
View File
@@ -12,7 +12,7 @@
- name: Import certificate of a client
ansible.builtin.copy:
content: "{{ certificate_authority_client_tls_crt_content }}"
dest: "{{ certificate_authority_client_tls_crt_content }}/cert.pem"
dest: "{{ certificate_authority_client_path }}/cert.pem"
owner: "root"
group: "root"
mode: "0644"