# This is the default ansible 'hosts' file. # # It should live in /etc/ansible/hosts # # - Comments begin with the '#' character # - Blank lines are ignored # - Groups of hosts are delimited by [header] elements # - You can enter hostnames or ip addresses # - A hostname/ip can be a member of multiple groups # Ex 1: Ungrouped hosts, specify before any group headers. ## green.example.com ## blue.example.com ## 192.168.100.1 ## 192.168.100.10 # Ex 2: A collection of hosts belonging to the 'webservers' group #[elasticsearch_first es1 ansible_host=172.16.0.161 ansible_user=vagrant ip=172.16.0.161 es2 ansible_host=172.16.0.162 ansible_user=vagrant ip=172.16.0.162 es3 ansible_host=172.16.0.163 ansible_user=vagrant ip=172.16.0.163 manager1 ansible_host=172.16.1.250 ansible_user=vagrant ip=172.16.1.250 [managers] manager1 [es-cluster] es1 es2 es3 manager1 [kibana] es1 [single-host] 172.16.1.15 ansible_ssh_user=vagrant [elastic-cluster] 172.16.0.161 ansible_ssh_user=vagrant 172.16.0.162 ansible_ssh_user=vagrant 172.16.0.163 ansible_ssh_user=vagrant [agents] 172.16.0.131 ansible_ssh_user=vagrant 172.16.0.132 ansible_ssh_user=vagrant # If you have multiple hosts following a pattern you can specify # them like this: