Added all
This commit is contained in:
12
inventory/hosts
Normal file
12
inventory/hosts
Normal file
@@ -0,0 +1,12 @@
|
||||
[database]
|
||||
192.168.11.20
|
||||
|
||||
[webserver]
|
||||
192.168.11.40
|
||||
|
||||
[loadbalancer]
|
||||
192.168.11.30
|
||||
|
||||
[all:vars]
|
||||
ansible_user=vagrant
|
||||
ansible_connection: ssh
|
||||
30
inventory/hosts-awx
Normal file
30
inventory/hosts-awx
Normal file
@@ -0,0 +1,30 @@
|
||||
# Ansible inventory file in YAML format ready for Ansible and AWX
|
||||
all:
|
||||
ansible_python_interpreter: /usr/bin/python3.12
|
||||
|
||||
database:
|
||||
hosts:
|
||||
db_01:
|
||||
ansible_host: 192.168.11.20
|
||||
ansible_connection: ssh
|
||||
ansible_user: vagrant
|
||||
ansible_ssh_password: vagrant
|
||||
loadbalancer:
|
||||
hosts:
|
||||
lb_01:
|
||||
ansible_host: 192.168.11.30
|
||||
ansible_connection: ssh
|
||||
ansible_user: vagrant
|
||||
ansible_ssh_password: vagrant
|
||||
webserver:
|
||||
hosts:
|
||||
ws_01:
|
||||
ansible_host: 192.168.11.40
|
||||
ansible_connection: ssh
|
||||
ansible_user: vagrant
|
||||
ansible_ssh_password: vagrant
|
||||
ws_02:
|
||||
ansible_host: 192.168.11.50
|
||||
ansible_connection: ssh
|
||||
ansible_user: vagrant
|
||||
ansible_ssh_password: vagrant
|
||||
12
inventory/hosts.ini
Normal file
12
inventory/hosts.ini
Normal file
@@ -0,0 +1,12 @@
|
||||
# Ansible inventory file in YAML format ready for Ansible and AWX
|
||||
[all]
|
||||
ansible_python_interpreter=/usr/bin/python3.12
|
||||
|
||||
[database]
|
||||
db_01 ansible_host=192.168.11.20 ansible_connection=ssh ansible_user=vagrant ansible_ssh_password=vagrant
|
||||
|
||||
[loadbalancer]
|
||||
lb_01 ansible_host=192.168.11.30 ansible_connection=ssh ansible_user=vagrant ansible_ssh_password=vagrant
|
||||
|
||||
[webserver]
|
||||
web_01 ansible_host=192.168.11.40 ansible_connection=ssh ansible_user=vagrant ansible_ssh_password=vagrant
|
||||
Reference in New Issue
Block a user