roles/filebeat-oss: add missing file mode and ownership for security_actions tasks

This commit is contained in:
neonmei 2020-11-12 11:32:49 -03:00
parent 80593c464b
commit 68b8c6b5a0
No known key found for this signature in database
GPG Key ID: 7EA1832E7E17237E

View File

@ -4,11 +4,16 @@
file: file:
path: "{{ filebeat_ssl_dir }}" path: "{{ filebeat_ssl_dir }}"
state: directory state: directory
owner: root
group: root
mode: 0774
- name: Copy the certificates from local to the Manager instance - name: Copy the certificates from local to the Manager instance
copy: copy:
src: "{{ local_certs_path }}/certs/{{ item }}" src: "{{ local_certs_path }}/certs/{{ item }}"
dest: "{{ filebeat_ssl_dir }}" dest: "{{ filebeat_ssl_dir }}"
owner: root
group: root
mode: 0644 mode: 0644
with_items: with_items:
- "{{ filebeat_node_name }}.key" - "{{ filebeat_node_name }}.key"