Certificate permissions tasks removed

This commit is contained in:
Gonzalo Acuña 2022-04-12 16:02:27 -03:00
parent 265d80d4a1
commit c523cdde4e
No known key found for this signature in database
GPG Key ID: 646BA79A313A2270

View File

@ -38,30 +38,6 @@
- name: Local action | Generate the node & admin certificates in local - name: Local action | Generate the node & admin certificates in local
command: >- command: >-
bash {{ local_certs_path }}/wazuh-certs-tool.sh -A 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 run_once: true
delegate_to: localhost delegate_to: localhost