Certificate permissions tasks removed
This commit is contained in:
parent
265d80d4a1
commit
c523cdde4e
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user