mirror of
https://github.com/aljazceru/ansible-elasticsearch.git
synced 2025-12-18 01:24:20 +01:00
Added conditional for ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec, as its only available on ES >=2.0
This commit is contained in:
@@ -17,7 +17,9 @@ WorkingDirectory={{es_home}}
|
||||
User={{es_user}}
|
||||
Group={{es_group}}
|
||||
|
||||
{% if es_version | version_compare('2.0', '>=') %}
|
||||
ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec
|
||||
{% endif %}
|
||||
|
||||
ExecStart={{es_home}}/bin/elasticsearch \
|
||||
-Des.pidfile=${PID_DIR}/elasticsearch.pid \
|
||||
|
||||
Reference in New Issue
Block a user