Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save krzysztof-magosa/637e9258caab33d210e34645919d77b7 to your computer and use it in GitHub Desktop.
Save krzysztof-magosa/637e9258caab33d210e34645919d77b7 to your computer and use it in GitHub Desktop.
Elasticsearch installation with Ansible
- name: Elasticsearch with custom configuration
hosts: localhost
roles:
#expand to all available parameters
- role: elasticsearch
es_instance_name: "node1"
es_data_dirs: "/opt/elasticsearch/data"
es_log_dir: "/opt/elasticsearch/logs"
es_work_dir: "/opt/elasticsearch/temp"
es_config:
node.name: "node1",
cluster.name: "custom-cluster",
discovery.zen.ping.unicast.hosts: "localhost:9301",
http.port: 9201,
transport.tcp.port: 9301,
node.data: false,
node.master: true,
bootstrap.mlockall: true,
discovery.zen.ping.multicast.enabled: false
vars:
es_scripts: false
es_templates: false
es_version_lock: false
es_heap_size: 1g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment