2015-05-12 14:24:31 +02:00
|
|
|
---
|
2015-10-22 19:09:53 +01:00
|
|
|
|
2016-12-07 22:54:33 +01:00
|
|
|
- set_fact: es_binary_prefix=""
|
|
|
|
|
|
|
|
|
|
- set_fact: es_binary_prefix="elasticsearch-"
|
|
|
|
|
when: es_version | version_compare('5.0', '>=')
|
|
|
|
|
|
2016-07-22 23:44:27 +01:00
|
|
|
- name: Include optional user and group creation.
|
2016-01-22 12:14:09 -08:00
|
|
|
when: (es_user_id is defined) and (es_group_id is defined)
|
|
|
|
|
include: elasticsearch-optional-user.yml
|
|
|
|
|
|
2015-10-22 19:09:53 +01:00
|
|
|
- name: Include specific Elasticsearch
|
2015-05-13 09:45:55 +02:00
|
|
|
include: elasticsearch-Debian.yml
|
|
|
|
|
when: ansible_os_family == 'Debian'
|
2015-05-12 14:24:31 +02:00
|
|
|
|
2015-10-22 19:09:53 +01:00
|
|
|
- name: Include specific Elasticsearch
|
2015-05-13 09:45:55 +02:00
|
|
|
include: elasticsearch-RedHat.yml
|
|
|
|
|
when: ansible_os_family == 'RedHat'
|