fix: test vars in inventory

This commit is contained in:
rcordier 2024-05-22 15:46:50 -04:00
parent 8ef5b02095
commit 14d9f44595
3 changed files with 6 additions and 4 deletions

View File

@ -1,7 +1,9 @@
all:
children:
env:
# Place your environment here
roles:
# Place role mapping here
children:
role_web:
role_db:

View File

@ -7,7 +7,7 @@ env_fake:
vars:
ansible_host: localhost
ansible_connection: local
environment_name2: fake5
environment_name: fake
roles:
children:

View File

@ -2,12 +2,12 @@
env_lab:
hosts:
rocky-1:
#ansible_host: 192.168.122.129
ansible_host: 192.168.122.129
rocky-2:
#ansible_host: 192.168.122.19
ansible_host: 192.168.122.19
vars:
ansible_user: cloud-user
environment_name2: lab5
environment_name: lab
# Inject roles
roles: