pki: Fix private key dir perms on OpenBSD
This commit is contained in:
parent
1996ec8f1a
commit
fdfa5c29e5
1 changed files with 8 additions and 0 deletions
|
@ -29,6 +29,14 @@
|
|||
ansible.builtin.set_fact:
|
||||
pki_cacert_hash: "{{ result.stdout }}"
|
||||
|
||||
- name: fix private key directory permissions
|
||||
ansible.builtin.file:
|
||||
path: "{{ tls_private }}"
|
||||
mode: 0750
|
||||
owner: root
|
||||
group: hostkey
|
||||
when: ansible_system == "OpenBSD"
|
||||
|
||||
- name: copy host certificate
|
||||
ansible.builtin.copy:
|
||||
src: "/srv/ca/certs/hosts/{{ inventory_hostname }}.crt"
|
||||
|
|
Loading…
Add table
Reference in a new issue