Looking for some help on a variable scenario

We have a lot of variables defined in the group_vars/all file which set the 
default variable that is used across multiple roles/playbook

For each environment, we have an ini inventory file. We would like to use 
the ini file as the place to override variable that might be different from 
default.

There is the feature for ansible to have env specific variable but you 
would need two file. Ideally we would like to keep everything in the same 
inventory file.

We have a section in the ini file called "[all:vars]" but it seems like the 
value in the group_vars/all override the one in the ini file which isn't 
ideal.

Anyone have any suggestion on how I could make this happen? Was thinking of 
using lookup but there doesn't seem to be a way to load it from the 
inventory file for variables.

-- 
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/5bfaebf7-5aba-4eaf-b6af-27b248aef649%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to