Skip to content

Latest commit

 

History

History

elasticsearch

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Ansible Role: Elasticsearch

This role will deal with the setup of Elasticsearch.

It's part of the Manala Ansible Collection.

Requirements

None.

Dependencies

None.

Installation

Installation instructions can be found in the main README.md

Role Variables

You can find all variables and default values used by this role in the defaults/main.yaml file

Example

Config

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

Environment

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"

Plugins

manala_elasticsearch_plugins:
  # Short sytax
  - mobz/elasticsearch-head
  # Verbose syntax
  - name: head
    repository: mobz/elasticsearch-head

Example playbook

- hosts: servers
  tasks:
    - ansible.builtin.import_role:  
        name: manala.roles.elasticsearch

Licencing

This collection is distributed under the MIT license.

See LICENSE to see the full text.

Author information

Manala (http://www.manala.io/)