├── .gitignore ├── hosts └── playbook.yml /.gitignore: -------------------------------------------------------------------------------- 1 | start_docker_hosts_osx.sh 2 | roles/ 3 | -------------------------------------------------------------------------------- /hosts: -------------------------------------------------------------------------------- 1 | [nodes] 2 | ansible-test ansible_ssh_host=192.168.99.100 ansible_ssh_port=32798 3 | -------------------------------------------------------------------------------- /playbook.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | - hosts: nodes 4 | roles: 5 | - { role: elasticsearch, es_instance_name: "node1", es_heap_size: "1g", es_config: {network.host: "_eth0_", discovery.zen.ping.unicast.hosts: "ansible-test:9300", http.port: 9200, transport.tcp.port: 9300, node.data: false, node.master: true, bootstrap.mlockall: true } } 6 | - { role: elasticsearch, es_instance_name: "node2", es_heap_size: "1g", es_config: {network.host: "_eth0_", discovery.zen.ping.unicast.hosts: "ansible-test:9300", http.port: 9201, transport.tcp.port: 9301, node.data: true, node.master: true, bootstrap.mlockall: true } } 7 | vars: 8 | es_cluster_name: test-cluster 9 | --------------------------------------------------------------------------------