Fix systemd handler to restart elasticsearch with systemd

This commit is contained in:
Romain Dessort 2017-08-04 10:48:37 -04:00
parent 3bd758759e
commit 15e7c72a23
2 changed files with 3 additions and 6 deletions

View File

@ -1,10 +1,7 @@
---
- name: restart elasticsearch
service:
name: elasticsearch
state: restarted
- name: reload elasticsearch unit
systemd:
daemon_reload: yes
name: elasticsearch
state: restarted

View File

@ -38,6 +38,6 @@
option: "LimitMEMLOCK"
value: "infinity"
notify:
- reload elasticsearch unit
- restart elasticsearch
tags:
- config