Remove deprecated import of wazuh template.
This commit is contained in:
parent
5d8286f0de
commit
54885a9e0d
@ -172,28 +172,6 @@
|
|||||||
- configure
|
- configure
|
||||||
- init
|
- init
|
||||||
|
|
||||||
- name: Check for Wazuh Alerts template
|
|
||||||
uri:
|
|
||||||
url: "http://{{elasticsearch_network_host}}:{{elasticsearch_http_port}}/_template/wazuh"
|
|
||||||
method: GET
|
|
||||||
status_code: 200, 404
|
|
||||||
when: not elasticsearch_bootstrap_node or single_node
|
|
||||||
poll: 30
|
|
||||||
register: wazuh_alerts_template_exits
|
|
||||||
tags: init
|
|
||||||
|
|
||||||
- name: Installing Wazuh Alerts template
|
|
||||||
uri:
|
|
||||||
url: "http://{{elasticsearch_network_host}}:{{elasticsearch_http_port}}/_template/wazuh"
|
|
||||||
method: PUT
|
|
||||||
status_code: 200
|
|
||||||
body_format: json
|
|
||||||
body: "{{ lookup('template','wazuh-elastic7-template-alerts.json.j2') }}"
|
|
||||||
when:
|
|
||||||
- wazuh_alerts_template_exits.status is defined
|
|
||||||
- wazuh_alerts_template_exits.status != 200
|
|
||||||
tags: init
|
|
||||||
|
|
||||||
- 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