2016-02-15 14:22:08 +01:00
|
|
|
---
|
2018-03-15 19:12:19 +01:00
|
|
|
- import_tasks: elasticsearch.yml
|
|
|
|
- import_tasks: plugins.yml
|
2016-02-15 15:52:30 +01:00
|
|
|
|
2016-02-15 14:22:08 +01:00
|
|
|
- name: Ensure that elasticsearch is enabled and running
|
|
|
|
service: name=elasticsearch state=started enabled=yes
|
|
|
|
when: elasticsearch_enabled
|
|
|
|
tags: [ 'ELK', 'elasticsearch', 'elk' ]
|
|
|
|
|
2016-02-15 15:52:30 +01:00
|
|
|
- name: Ensure that elasticsearch is disabled and stopped
|
|
|
|
service: name=elasticsearch state=stopped enabled=no
|
|
|
|
when: not elasticsearch_enabled
|
|
|
|
tags: [ 'ELK', 'elasticsearch', 'elk' ]
|
|
|
|
|