2016-06-30 16:09:51 +02:00
|
|
|
---
|
2020-03-13 19:47:02 +01:00
|
|
|
- name: Elasticsearch installation
|
|
|
|
block:
|
2017-02-14 16:48:50 +01:00
|
|
|
- name: Install the elasticsearch deb packages
|
2020-02-12 17:25:58 +01:00
|
|
|
apt: name='{{ elasticsearch_packages }}' state={{ elasticsearch_package_state }} update_cache=yes cache_valid_time=1800
|
2016-06-30 16:09:51 +02:00
|
|
|
|
2017-02-14 16:48:50 +01:00
|
|
|
- name: Install the elasticsearch startup default
|
|
|
|
template: src=elasticsearch-default.j2 dest=/etc/default/elasticsearch owner=root group=elasticsearch mode=0640
|
2020-03-13 19:47:02 +01:00
|
|
|
register: elasticsearch_default
|
2017-02-14 16:48:50 +01:00
|
|
|
notify: Restart elasticsearch
|
2016-06-30 16:09:51 +02:00
|
|
|
|
2017-02-14 16:48:50 +01:00
|
|
|
- name: Install the elasticsearch JVM options
|
|
|
|
template: src=jvm.options.j2 dest=/etc/elasticsearch/jvm.options owner=root group=elasticsearch mode=0640
|
2020-03-13 19:47:02 +01:00
|
|
|
register: elasticsearch_jvm_opts
|
2017-02-14 16:48:50 +01:00
|
|
|
notify: Restart elasticsearch
|
2017-05-17 11:26:10 +02:00
|
|
|
tags: [ 'ELK', 'elasticsearch', 'elk', 'elasticsearch_conf' ]
|
2017-02-14 16:48:50 +01:00
|
|
|
|
|
|
|
- name: Install the elasticsearch configuration
|
|
|
|
template: src=elasticsearch.yml.j2 dest=/etc/elasticsearch/elasticsearch.yml owner=root group=elasticsearch mode=0640
|
2020-03-13 19:47:02 +01:00
|
|
|
register: elasticsearch_configuration
|
2017-02-14 16:48:50 +01:00
|
|
|
notify: Restart elasticsearch
|
2017-05-16 18:37:25 +02:00
|
|
|
tags: [ 'ELK', 'elasticsearch', 'elk', 'elasticsearch_conf' ]
|
|
|
|
|
2017-02-14 16:48:50 +01:00
|
|
|
tags: [ 'ELK', 'elasticsearch', 'elk' ]
|