From c523cdde4e463a2ff776d15ddee0abca16ae535c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Acu=C3=B1a?= Date: Tue, 12 Apr 2022 16:02:27 -0300 Subject: [PATCH] Certificate permissions tasks removed --- .../wazuh-indexer/tasks/local_actions.yml | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/roles/wazuh/wazuh-indexer/tasks/local_actions.yml b/roles/wazuh/wazuh-indexer/tasks/local_actions.yml index 69784a45..4a215bef 100644 --- a/roles/wazuh/wazuh-indexer/tasks/local_actions.yml +++ b/roles/wazuh/wazuh-indexer/tasks/local_actions.yml @@ -38,30 +38,6 @@ - name: Local action | Generate the node & admin certificates in local command: >- bash {{ local_certs_path }}/wazuh-certs-tool.sh -A - become: yes - - - name: Get Certificate files - find: - paths: "{{ local_certs_path }}/wazuh-certificates" - patterns: "*" - become: yes - register: certificate_files - - - name: Change certificates directory ownership - file: - path: "{{ local_certs_path }}/wazuh-certificates" - state: directory - mode: '777' - become: yes - - - name: Change Certificates Ownership - file: - path: "{{ item.path }}" - owner: "{{ ansible_effective_user_id }}" - group: "{{ ansible_effective_user_id }}" - mode: '777' - become: yes - with_items: "{{ certificate_files.files }}" run_once: true delegate_to: localhost