Merge pull request #746 from wazuh/1449-certs-permissions

Certificate permissions tasks removed
This commit is contained in:
Alberto Rodríguez 2022-04-13 08:17:26 +02:00 committed by GitHub
commit 889b8a9dd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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