Remove deprecated import of wazuh template.

This commit is contained in:
Jose M 2019-07-01 11:57:15 +02:00
parent 5d8286f0de
commit 54885a9e0d

View File

@ -172,28 +172,6 @@
- configure
- 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"
when: ansible_os_family == "RedHat"