The YAML file below can be used to run an Elasticsearch cluster.
cluster.name: Windt-ES #define node 1, 2 and 3 as master-eligible: node.master: false #define nodes 4 and 5 as data nodes: node.data: true node.name: Debian-A1-102 path.data: /var/lib/elasticsearch path.logs: /var/log/elasticsearch network.host: 10.81.70.102 http.port: 9200 discovery.zen.ping.unicast.hosts: ["Debian9-A1-99", "Debian9-A1-100", "Debian9-A1-101", "Debian9-A1-102", "Debian9-A1-103"] discovery.zen.minimum_master_nodes: 2
Instructions on how to install an Elasticsearch server by using a playbook can be found here.