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.