Added new tasks for xpack security
This commit is contained in:
parent
eb66e7d4cb
commit
11721ebe14
@ -112,6 +112,16 @@
|
|||||||
- wazuh_alerts_template_exits.status != 200
|
- wazuh_alerts_template_exits.status != 200
|
||||||
tags: init
|
tags: init
|
||||||
|
|
||||||
|
- name: Check that the instances.yml file exists
|
||||||
|
stat:
|
||||||
|
path: /usr/share/elasticsearch/instances.yml
|
||||||
|
register: instances_exists
|
||||||
|
|
||||||
|
- name: Generating certificates for Elasticsearch security
|
||||||
|
shell: "/usr/share/elasticsearch/bin/elasticsearch-certutil cert ca --pem --in /usr/share/elasticsearch/instances.yml --out /usr/share/elasticsearch/certs.zip"
|
||||||
|
when: instances_exists
|
||||||
|
tags: xpack-security
|
||||||
|
|
||||||
- import_tasks: "RMRedHat.yml"
|
- import_tasks: "RMRedHat.yml"
|
||||||
when: ansible_os_family == "RedHat"
|
when: ansible_os_family == "RedHat"
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user