ansible-role-elasticsearch/tasks/config.yml

22 lines
494 B
YAML
Raw Normal View History

2020-02-09 14:15:24 +00:00
---
- name: set heap size
lineinfile:
path: /etc/elasticsearch/jvm.options
regexp: '^-{{ item }}'
line: '-{{ item }}{{ elasticsearch_heap_size }}'
loop:
- Xms
- Xmx
notify: restart elasticsearch
tags: elasticsearch
- name: copy config file
copy:
2020-03-08 17:35:44 +00:00
content: '{{ elasticsearch_full_config|to_nice_yaml }}'
2020-02-09 14:15:24 +00:00
dest: /etc/elasticsearch/elasticsearch.yml
owner: root
group: elasticsearch
mode: 0640
notify: restart elasticsearch
tags: elasticsearch