Hey -- was hoping somebody could explain to me what is going on here.

*group_vars/all:*

db_name: top_level_db


*roles/role_name/vars/main.yml:*

db_name: role_level_db
db_name_test: "{{db_name}}"

env:
      DB_NAME: "{{db_name}}"
     


When I run code in roles/role_name/tasks/main.yml, when I try to use the 
variables, I see that db_name_test is as I expect (it returns the value 
role_level_db), but the env.DB_NAME value is surprising to me (it shows 
top_level_db)

Any comments/clarification are appreciated!

Thanks

Brian



-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8d60f5ef-e225-437b-b348-1124f4a03c81%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to