From fe336c3767ef4bfbafacfa7837449eb9ad7bfaf0 Mon Sep 17 00:00:00 2001 From: Dale McDiarmid Date: Fri, 27 Nov 2015 13:42:03 +0000 Subject: [PATCH] Support for removing memory settings --- tasks/elasticsearch-config.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks/elasticsearch-config.yml b/tasks/elasticsearch-config.yml index b214b93..67a37d1 100644 --- a/tasks/elasticsearch-config.yml +++ b/tasks/elasticsearch-config.yml @@ -43,6 +43,11 @@ when: es_heap_size is defined register: elasticsearch_configure +- name: Remove memory in defaults + lineinfile: dest={{instance_default_file}} regexp="^ES_HEAP_SIZE" line="ES_HEAP_SIZE=" state=absent + when: es_heap_size is not defined + register: elasticsearch_configure + - debug: msg="{{elasticsearch_configure}}" #We only have to set these if they are specified. The start scripts will by default set this value.