Create relative links to root instead of absolute
We don't really need to create an absolute links for root/intermediate certificates since original file is placed at the same place. In case of storing PKI dir in git these links are considered as out-of-bound which results in sanity checks failure. Also we're eliminating risk of broken links in case when PKI directory is being moved on the filesystem Change-Id: Ia7f4f4726bf4d73c6c0071bef52fd6eb58d662a3
This commit is contained in:
parent
7b261e2119
commit
36ee8b2dc0
@ -131,7 +131,7 @@
|
||||
|
||||
- name: Symlink the certificate name to the most recently generated
|
||||
file:
|
||||
src: "{{ ca_selfsigned_crt.filename | default(ca_ownca_crt.filename) }}"
|
||||
src: "{{ (ca_selfsigned_crt.filename | default(ca_ownca_crt.filename)) | basename }}"
|
||||
dest: "{{ ca_cert_prefix ~ '.crt' }}"
|
||||
state: link
|
||||
when: ca_ownca_crt is changed or ca_selfsigned_crt is changed
|
||||
|
Loading…
Reference in New Issue
Block a user