Skip to content

Commit f3c7f32

Browse files
committed
add sample inventory files
1 parent 821b35d commit f3c7f32

File tree

6 files changed

+72
-6
lines changed

6 files changed

+72
-6
lines changed

Shift_Env/Ansible.inventory.sample

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[1-0001_Base_GROUP]
2+
192.168.127.100 ansible_user=root ansible_ssh_pass=p@ssw0rd
3+
192.168.127.101 ansible_user=root ansible_ssh_pass=p@ssw0rd
4+
[1-0102_apache_GROUP]
5+
192.168.127.100 ansible_user=root ansible_ssh_pass=p@ssw0rd
6+
[1-0103_Tomcat_GROUP]
7+
192.168.127.100 ansible_user=root ansible_ssh_pass=p@ssw0rd
8+
[1-0104_postgreSQL_GROUP]
9+
192.168.127.100 ansible_user=root ansible_ssh_pass=p@ssw0rd
10+
[1-0105_openJDK_GROUP]
11+
192.168.127.100 ansible_user=root ansible_ssh_pass=p@ssw0rd
12+
[1-0106_PrivateCA_GROUP]
13+
192.168.127.100 ansible_user=root ansible_ssh_pass=p@ssw0rd
14+
192.168.127.101 ansible_user=root ansible_ssh_pass=p@ssw0rd
15+
[1-0108_Pgpool-II_GROUP]
16+
192.168.127.100 ansible_user=root ansible_ssh_pass=p@ssw0rd
17+
[1-1301_ZabbixAgent_GROUP]
18+
192.168.127.100 ansible_user=root ansible_ssh_pass=p@ssw0rd
19+
192.168.127.101 ansible_user=root ansible_ssh_pass=p@ssw0rd
20+
[2-0001_Base_GROUP]
21+
192.168.127.110 ansible_user=Administrator ansible_ssh_pass=p@ssw0rd
22+
192.168.127.111 ansible_user=Administrator ansible_ssh_pass=p@ssw0rd
23+
[linux:children]
24+
1-0001_Base_GROUP
25+
1-0102_apache_GROUP
26+
1-0103_Tomcat_GROUP
27+
1-0104_postgreSQL_GROUP
28+
1-0105_openJDK_GROUP
29+
1-0106_PrivateCA_GROUP
30+
1-0108_Pgpool-II_GROUP
31+
1-1301_ZabbixAgent_GROUP
32+
[windows:children]
33+
2-0001_Base_GROUP
34+
[linux:vars]
35+
ansible_ssh_port = 22
36+
[windows:vars]
37+
ansible_ssh_port = 5986
38+
ansible_connection = winrm
39+
ansible_winrm_server_cert_validation = ignore
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
- :name: 192.168.127.100
2+
:roles:
3+
- 1-0001_Base
4+
- 1-0102_apache
5+
- 1-0103_Tomcat
6+
- 1-0104_postgreSQL
7+
- 1-0105_openJDK
8+
- 1-0106_PrivateCA
9+
- 1-0108_Pgpool-II
10+
- 1-1301_ZabbixAgent
11+
:conn_user: root
12+
:conn_password: p@ssw0rd
13+
- :name: 192.168.127.101
14+
:roles:
15+
- 1-0001_Base
16+
- 1-0106_PrivateCA
17+
- 1-1301_ZabbixAgent
18+
:conn_user: root
19+
:conn_password: p@ssw0rd
20+
- :name: 192.168.127.110
21+
:roles:
22+
- 2-0001_Base
23+
:conn_user: Administrator
24+
:conn_password: p@ssw0rd
25+
- :name: 192.168.127.111
26+
:roles:
27+
- 2-0001_Base
28+
:conn_user: Administrator
29+
:conn_password: p@ssw0rd

Shift_Env/tools/1-9901_PreDev.inventory.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[targethost]
2-
192.168.127.101 ansible_ssh_pass=password
2+
192.168.127.100 ansible_ssh_pass=password
33

44
[targethost:vars]
55
ansible_ssh_port=22

Shift_Env/tools/1-9902_PostDev.inventory.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[targethost]
2-
192.168.127.101 ansible_ssh_pass=password
2+
192.168.127.100 ansible_ssh_pass=password
33

44

55
[targethost:vars]

Shift_Env/tools/2-9901_PreDev.inventory.sample

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[targethost]
2-
192.168.127.30 ansible_user=Administrator ansible_ssh_pass=p@ssw0rd
3-
192.168.127.40 ansible_user=Administrator ansible_ssh_pass=p@ssw0rd
2+
192.168.127.100 ansible_user=Administrator ansible_ssh_pass=p@ssw0rd
43

54
[targethost:vars]
65
ansible_ssh_port = 5986

Shift_Env/tools/2-9902_PostDev.inventory.sample

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[targethost]
2-
192.168.127.30 ansible_user=Administrator ansible_ssh_pass=p@ssw0rd
3-
192.168.127.40 ansible_user=Administrator ansible_ssh_pass=p@ssw0rd
2+
192.168.127.100 ansible_user=Administrator ansible_ssh_pass=p@ssw0rd
43

54
[targethost:vars]
65
ansible_ssh_port = 5986

0 commit comments

Comments
 (0)