diff --git a/roles/wazuh/ansible-filebeat-oss/tasks/security_actions.yml b/roles/wazuh/ansible-filebeat-oss/tasks/security_actions.yml index 95503159..fdec3c04 100644 --- a/roles/wazuh/ansible-filebeat-oss/tasks/security_actions.yml +++ b/roles/wazuh/ansible-filebeat-oss/tasks/security_actions.yml @@ -4,24 +4,22 @@ file: path: "{{ filebeat_ssl_dir }}" state: directory + owner: root + group: root + mode: 0774 - name: Copy the certificates from local to the Manager instance copy: src: "{{ local_certs_path }}/certs/{{ item }}" dest: "{{ filebeat_ssl_dir }}" + owner: root + group: root mode: 0644 with_items: - "{{ filebeat_node_name }}.key" - "{{ filebeat_node_name }}.pem" - "root-ca.pem" - - name: Ensuring folder & certs permissions - file: - path: "{{ filebeat_ssl_dir }}/" - mode: 0774 - state: directory - recurse: yes - tags: - security when: