diff --git a/inventories/00-common.yml b/inventories/00-common.yml index 8e60fd2..225d477 100644 --- a/inventories/00-common.yml +++ b/inventories/00-common.yml @@ -6,4 +6,6 @@ all: # Place role mapping here children: role_web: + vars: + app_domain: "domain.{{ top_domain }}" role_db: diff --git a/inventories/lab/hosts.yml b/inventories/lab/hosts.yml new file mode 100644 index 0000000..5cade80 --- /dev/null +++ b/inventories/lab/hosts.yml @@ -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: + diff --git a/inventories/rob/toto.yml b/inventories/rob/toto.yml new file mode 100644 index 0000000..85bcc06 --- /dev/null +++ b/inventories/rob/toto.yml @@ -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: +