Hi folks,

I need to model some data on a per-inventory basis, i.e. each inventory 
would define the same variables with different values. This seems simple 
enough when using simple variables i.e. no lists or hashes e.g.

# production.ini
[jenkins-master]
mrs-jm01.dev.eddgrant.com

[mrs-database-servers]
mrs-db01.dev.eddgrant.com
mrs-dm02.dev.eddgrant.com

[all:vars]
http_proxy=www-cache.eddgrant.com:80

However, I want to use this in conjunction with Ansible's environment 
feature <http://docs.ansible.com/playbooks_environment.html> and ideally 
want to be able to define a hash in each inventory file which I can then 
reference later on. As far as I can tell there is no longer any way to 
define a hash in an inventory file now that yaml inventory files have been 
deprecated<https://groups.google.com/forum/#!msg/ansible-project/eBH5-OzMJqk/mbK3lPyk8tEJ>.
 
Is my understanding correct here?

I'm probably missing something but I can't see an idiomatic Ansible way of 
doing this. Hence grateful for any tips.

Cheers,

Edd

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to