diff --git a/ansible-role-elasticsearch/templates/jvm.options.j2 b/ansible-role-elasticsearch/templates/jvm.options.j2 index 10829b90..576b9cc3 100644 --- a/ansible-role-elasticsearch/templates/jvm.options.j2 +++ b/ansible-role-elasticsearch/templates/jvm.options.j2 @@ -20,7 +20,7 @@ # Xms represents the initial size of total heap space # Xmx represents the maximum size of total heap space -{% if elasticsearch_jvm_xms is defined %} +{% if elasticsearch_jvm_xms is not none %} {% if elasticsearch_jvm_xms < 32000 %} -Xms{{ elasticsearch_jvm_xms }}m -Xmx{{ elasticsearch_jvm_xms }}m