# uswest: sandbox: UI
[sandbox_webtier_uswest]
<redacted>
#----------------------------------------
# uswest: sandbox: REST Layer
[sandbox_resttier_uswest]
<redacted>
#----------------------------------------
# uswest: sandbox: Processing Layer: Kafka
#-----------------------------------------
[sandbox_kafka_uswest]
<redacted>
# uswest: sandbox: Processing Layer: Storm
#------------------------------------------
[sandbox_storm_uswest]
<redacted>
# uswest: sandbox: Processing Layer: Zookeeper
#--------------------------------------------
[sandbox_zk_uswest]
<redacted>
# uswest: sandbox: Processing Layer Main
#----------------------------------------
[sandbox_processingtier_uswest:children]
sandbox_kafka_uswest
sandbox_storm_uswest
sandbox_zk_uswest
# uswest: sandbox: Storage Layer: Cassandra
#------------------------------------------
[sandbox_cass_uswest]
<redacted>
# uswest: sandbox: Storage Layer: Elasticsearch
# ----------------------------------------------
[sandbox_es_uswest]
10.0.4.5
# uswest: sandbox: Storage Layer Main
# ------------------------------------
[sandbox_storagetier_uswest:children]
sandbox_cass_uswest
sandbox_es_uswest
# uswest: sandbox: Main
# ----------------------
[uswest_sandbox:children]
sandbox_webtier_uswest
sandbox_resttier_uswest
sandbox_processingtier_uswest
sandbox_storagetier_uswest
Now, I have defined group_vars for "uswest_sandbox" group of groups in the group_vars folder
# group_vars/uswest_sandbox
---
registryurl: <redacted>
registry: <redacted>
registrySeparator: <redacted>"
registryUser:<redacted>
registryPass: <redacted>
registryEmail: <redacted>
userName:<redacted>
With this, when I run the ansible playboox, the group_vars/uswest_sandbox is not loaded/read.
Here's the yml file in /roles/common/tasks where I am referring the vars
- name: "Perform docker login to registry running on sandbox-bastion node"
shell: docker login --username={{ registryUser }} --password={{ registryPass }} --email={{ registryEmail }} {{ registryurl }}
So, I would expect Anisble to look for the vars in the local vars folder i.e. roles/common/vars, and then look at top level directory i.e. group_vars/uswest_sandbox.yml
However ansible run gives the following error:
"One or more undefined variables: 'registryUser' is undefined"
I might me off with my understanding here. Any help is appreciated.