I like to set values like that in group_vars/all/<something_descriptive>.yml

e.g. 
# file: group_vars/definitions.yml
---
elastic_search_values:
  production: 5
  development: 3



# file: group_vars/elasticsearch-master.yml
elastic_search: production



# file: group_vars/elasticsearch-data.yml
elastic_search: development



Then reference it like:
{{ elastic_search_vars[elastic_search] }}




-- 
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/0a62bb15-0cb0-44ae-af93-84cf400d98bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to