-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhosts
51 lines (43 loc) · 1.18 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
# Ansible inventory file
Backbone ansible_host=192.168.122.10
[routers]
Centre ansible_host=10.0.0.1
South ansible_host=10.0.1.1
North ansible_host=10.0.2.1
[switches_distribution]
DLS1-C ansible_host=172.16.0.1
DLS2-C ansible_host=172.16.1.1
DLS1-S ansible_host=172.16.2.1
DLS2-S ansible_host=172.16.3.1
DLS1-N ansible_host=172.16.4.1
DLS2-N ansible_host=172.16.5.1
[switches_access]
ALS1-C ansible_host=192.168.1.1
ALS2-C ansible_host=192.168.1.2
ALS1-S ansible_host=192.168.2.1
ALS2-S ansible_host=192.168.2.2
ALS1-N ansible_host=192.168.3.1
ALS2-N ansible_host=192.168.3.2
[switches:children]
switches_distribution
switches_access
[switches_centre]
DLS1-C ansible_host=172.16.0.1
DLS2-C ansible_host=172.16.1.1
ALS1-C ansible_host=192.168.1.1
ALS2-C ansible_host=192.168.1.2
[switches_south]
DLS1-S ansible_host=172.16.2.1
DLS2-S ansible_host=172.16.3.1
ALS1-S ansible_host=192.168.2.1
ALS2-S ansible_host=192.168.2.2
[switches_north]
DLS1-N ansible_host=172.16.4.1
DLS2-N ansible_host=172.16.5.1
ALS1-N ansible_host=192.168.3.1
ALS2-N ansible_host=192.168.3.2
[all:vars]
ansible_user=nima
ansible_ssh_private_key_file=~/.ssh/id_rsa
ansible_python_interpreter=/usr/bin/python3
ansible_network_os=ios