| 1 |
# This is the default ansible 'hosts' file. |
| 2 |
# |
| 3 |
# It should live in /etc/ansible/hosts |
| 4 |
# |
| 5 |
# - Comments begin with the '#' character |
| 6 |
# - Blank lines are ignored |
| 7 |
# - Groups of hosts are delimited by [header] elements |
| 8 |
# - You can enter hostnames or ip addresses |
| 9 |
# - A hostname/ip can be a member of multiple groups |
| 10 |
|
| 11 |
# Ex 1: Ungrouped hosts, specify before any group headers. |
| 12 |
|
| 13 |
#green.example.com |
| 14 |
#blue.example.com |
| 15 |
#192.168.100.1 |
| 16 |
#192.168.100.10 |
| 17 |
|
| 18 |
# Ex 2: A collection of hosts belonging to the 'webservers' group |
| 19 |
|
| 20 |
#[webservers] |
| 21 |
#alpha.example.org |
| 22 |
#beta.example.org |
| 23 |
#192.168.1.100 |
| 24 |
#192.168.1.110 |
| 25 |
|
| 26 |
# If you have multiple hosts following a pattern you can specify |
| 27 |
# them like this: |
| 28 |
|
| 29 |
#www[001:006].example.com |
| 30 |
|
| 31 |
# Ex 3: A collection of database servers in the 'dbservers' group |
| 32 |
|
| 33 |
#[dbservers] |
| 34 |
# |
| 35 |
#db01.intranet.mydomain.net |
| 36 |
#db02.intranet.mydomain.net |
| 37 |
#10.25.1.56 |
| 38 |
#10.25.1.57 |
| 39 |
|
| 40 |
# Here's another example of host ranges, this time there are no |
| 41 |
# leading 0s: |
| 42 |
|
| 43 |
#db-[99:101]-node.example.com |
| 44 |
|