-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhosts
73 lines (55 loc) · 1.34 KB
/
hosts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# 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
[all:vars]
ansible_ssh_private_key_file=/etc/ansible/keys/key-one.pem
ansible_python_interpreter=/usr/bin/python3
[webservers]
192.168.0.94
192.168.0.74
192.168.0.84
[masters]
192.168.0.94
[slaves]
192.168.0.74
192.168.0.84
[storage]
192.168.0.74
192.168.0.84
[processing]
192.168.0.74
192.168.0.84
[ssh-authority]
192.168.0.94
192.168.0.74
192.168.0.84
localhost
## alpha.example.org
## beta.example.org
## 192.168.1.100
## 192.168.1.110
# If you have multiple hosts following a pattern you can specify
# them like this:
## www[001:006].example.com
# Ex 3: A collection of database servers in the 'dbservers' group
## [dbservers]
##
## db01.intranet.mydomain.net
## db02.intranet.mydomain.net
## 10.25.1.56
## 10.25.1.57
# Here's another example of host ranges, this time there are no
# leading 0s:
## db-[99:101]-node.example.com