2015-05-12 14:24:31 +02:00
|
|
|
---
|
2015-10-22 19:09:53 +01:00
|
|
|
|
2015-11-25 15:28:09 +00:00
|
|
|
- set_fact: instance_default_file={{default_file | dirname}}/{{es_instance_name}}_{{default_file | basename}}
|
2016-04-26 12:11:13 -07:00
|
|
|
tags:
|
|
|
|
|
- always
|
2015-11-25 15:28:09 +00:00
|
|
|
- set_fact: instance_init_script={{init_script | dirname }}/{{es_instance_name}}_{{init_script | basename}}
|
2016-04-26 12:11:13 -07:00
|
|
|
tags:
|
|
|
|
|
- always
|
2015-12-13 22:46:50 +00:00
|
|
|
- set_fact: conf_dir={{ es_conf_dir }}/{{es_instance_name}}
|
2016-04-26 12:11:13 -07:00
|
|
|
tags:
|
|
|
|
|
- always
|
2015-12-13 22:46:50 +00:00
|
|
|
- set_fact: plugin_dir={{ es_plugin_dir }}/{{es_instance_name}}
|
2016-04-26 12:11:13 -07:00
|
|
|
tags:
|
|
|
|
|
- always
|
2015-11-27 18:12:59 +00:00
|
|
|
- set_fact: m_lock_enabled={{ es_config['bootstrap.mlockall'] is defined and es_config['bootstrap.mlockall'] == True }}
|
2016-04-26 12:11:13 -07:00
|
|
|
tags:
|
|
|
|
|
- always
|
2015-10-22 19:09:53 +01:00
|
|
|
|
2015-11-25 15:28:09 +00:00
|
|
|
- debug: msg="Node configuration {{ es_config }} "
|
2015-10-22 19:09:53 +01:00
|
|
|
|
2016-01-22 12:14:09 -08:00
|
|
|
- name: Include optional user and group creation.
|
|
|
|
|
when: (es_user_id is defined) and (es_group_id is defined)
|
|
|
|
|
include: elasticsearch-optional-user.yml
|
|
|
|
|
|
2016-01-19 11:50:02 +01:00
|
|
|
#- name: Include specific Elasticsearch
|
|
|
|
|
# include: "elasticsearch-{{ansible_os_family}}.yml"
|
|
|
|
|
|
|
|
|
|
#Install OS specific elasticsearch - this can be abbreviated in version 2.0.0
|
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'
|