add: nez inventories

This commit is contained in:
rcordier 2024-05-23 15:08:15 -04:00
parent 842d0511fd
commit 2613a55a82
3 changed files with 53 additions and 0 deletions

View File

@ -6,4 +6,6 @@ all:
# Place role mapping here
children:
role_web:
vars:
app_domain: "domain.{{ top_domain }}"
role_db:

21
inventories/lab/hosts.yml Normal file
View File

@ -0,0 +1,21 @@
---
env_lab:
hosts:
rocky-1:
ansible_host: 192.168.122.222
rocky-2:
ansible_host: 192.168.122.96
vars:
ansible_user: cloud-user
environment_name: lab
# Inject roles
roles:
children:
role_web:
hosts:
rocky-1:
role_db:
hosts:
rocky-2:

30
inventories/rob/toto.yml Normal file
View File

@ -0,0 +1,30 @@
---
env_rob:
hosts:
rocky-1:
ansible_host: 192.168.122.87
rocky-2:
ansible_host: 1.2.3.4
rocky-3:
ansible_host: 192.168.122.229
vars:
ansible_user: cloud-user
environment_name: rob
# Inject roles
roles:
children:
role_web:
vars:
app_domain: titi.activia.cim
hosts:
rocky-1:
role_db:
hosts:
rocky-1:
role_admin:
vars:
app_domain: admin.activia.cim
hosts:
rocky-1: