This role will deal with the setup of Elasticsearch.
It's part of the Manala Ansible Collection.
None.
None.
Installation instructions can be found in the main README.md
You can find all variables and default values used by this role in the defaults/main.yaml file
Use elasticsearch default main config template (recommended):
manala_elasticsearch_config_template: config/elasticsearch/elasticsearch.yml.j2
manala_elasticsearch_config:
script:
engine:
groovy:
inline:
aggs: true
Use dict parameters:
manala_elasticsearch_config:
cluster:
name: foo
path.data: /foo/bar
Use raw main config:
manala_elasticsearch_config: |
cluster:
name: foo
path.data: /foo/bar
Use elasticsearch default main environment template (recommended):
manala_elasticsearch_environment_template: environment/elasticsearch/elasticsearch.j2
manala_elasticsearch_environment:
ES_JAVA_OPTS: -Xms1g -Xmx1g
Use dict parameters:
manala_elasticsearch_environment:
ES_JAVA_OPTS: -Xms1g -Xmx1g
Use raw main config:
manala_elasticsearch_environment: |
ES_JAVA_OPTS="-Xms1g -Xmx1g"
manala_elasticsearch_plugins:
# Short sytax
- mobz/elasticsearch-head
# Verbose syntax
- name: head
repository: mobz/elasticsearch-head
- hosts: servers
tasks:
- ansible.builtin.import_role:
name: manala.roles.elasticsearch
This collection is distributed under the MIT license.
See LICENSE to see the full text.
Manala (http://www.manala.io/)