roles creates cert/key directory to avoid wrong path errors

This commit is contained in:
Bertrand Lanson 2023-04-29 19:04:57 +02:00
parent 28f37347a4
commit 693340a586

View File

@ -23,3 +23,14 @@
owner: "{{ renew_vault_certificates_vault_user }}"
group: "{{ renew_vault_certificates_vault_group }}"
mode: '0755'
- name: "Ensure certificate/key directory(ies) exist(s)"
ansible.builtin.file:
path: "{{item | dirname }}"
state: directory
owner: "{{ renew_vault_certificates_vault_user }}"
group: "{{ renew_vault_certificates_vault_group }}"
mode: '0755'
loop:
- "{{ renew_vault_certificates_cert_dest }}"
- "{{ renew_vault_certificates_key_dest }}"