Allow es_heap_size to be defined

This commit is contained in:
Robin Clarke 2015-05-22 21:11:33 +02:00
parent 5cec2dd17f
commit d9a86b5d06
5 changed files with 14 additions and 3 deletions

View file

@ -8,4 +8,7 @@
yum: name=elasticsearch-{{ es_version }} state=present update_cache=yes
register: elasticsearch_install
- name: RedHat - configure memory
lineinfile: dest=/etc/default/elasticsearch regexp="^ES_HEAP_SIZE" insertafter="^#ES_HEAP_SIZE" line="ES_HEAP_SIZE={{ es_heap_size }}"
when: es_heap_size is defined
register: elasticsearch_configure