Restart elasticsearch with Ansible

Hi @cedbale

This playbook uses a custom service name because it supports running multiple instances of elasticsearch on the same node. You can find the service name by running:

systemctl | grep elasticsearch

The name will be {{ es_instance_name }}_elasticsearch. So if your node is called node1 the service name should be node1_elasticsearch.

Cheers,

Micky

1 Like