2016-07-22 23:44:27 +01:00
|
|
|
|
2016-11-03 14:53:45 +01:00
|
|
|
- name: reload systemd configuration
|
2017-05-12 13:31:50 -07:00
|
|
|
become: yes
|
2016-11-03 14:53:45 +01:00
|
|
|
command: systemctl daemon-reload
|
2015-11-27 18:12:59 +00:00
|
|
|
|
2016-11-03 14:53:45 +01:00
|
|
|
# Restart service and ensure it is enabled
|
2017-08-16 12:41:10 +01:00
|
|
|
|
2015-11-27 18:12:59 +00:00
|
|
|
- name: restart elasticsearch
|
2017-05-12 13:31:50 -07:00
|
|
|
become: yes
|
2019-06-03 14:18:09 +02:00
|
|
|
service: name=elasticsearch state=restarted enabled=yes
|
2017-08-16 12:41:10 +01:00
|
|
|
when:
|
|
|
|
|
- es_restart_on_change
|
|
|
|
|
- es_start_service
|
2017-08-17 10:05:32 +01:00
|
|
|
register: es_restarted
|