create hostkey group which has read access to host certificate key

This commit is contained in:
Timo Makinen 2019-05-24 11:57:03 +03:00
parent be9fab2fc3
commit 52c23c914f

View file

@ -1,5 +1,10 @@
---
- name: create hostkey group
group:
name: hostkey
system: true
- name: copy ca certificate
copy:
src: "/srv/ca/certs/ca.crt"
@ -20,6 +25,6 @@
copy:
src: "/srv/ca/private/{{ inventory_hostname }}.key"
dest: "{{ tls_private }}/{{ inventory_hostname }}.key"
mode: 0600
mode: 0640
owner: root
group: "{{ ansible_wheel }}"
group: hostkey