2016-07-22 23:44:27 +01:00
|
|
|
|
2017-08-16 12:41:10 +01:00
|
|
|
- name: reload systemd configuration
|
|
|
|
|
command: systemctl daemon-reload
|
2016-07-24 01:10:07 +01:00
|
|
|
|
2017-08-16 12:41:10 +01:00
|
|
|
# Restart service and ensure it is enabled
|
|
|
|
|
|
|
|
|
|
- name: restart elasticsearch
|
|
|
|
|
service: name={{instance_init_script | basename}} state=restarted enabled=yes
|
|
|
|
|
when:
|
|
|
|
|
- es_restart_on_change
|
|
|
|
|
- es_start_service
|
2017-08-17 10:05:32 +01:00
|
|
|
register: es_restarted
|