Maybe not the best way. But for some cases I "misuse" host entries to
address this.
So the host entry "web_prod" in the group "web_conf" could have the
variable ram with "4GB" and in the group_vars for web_conf ram would have
"1GB". And to access this: {{ hostvars[tier + '_' + stage ].ram }}.
In my case I do this with a generated inventory to manage app and database
users/passwords from KeePass. And to separate this the entries have
underscores and are in the "user" group.
esco
--
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/d7fcad76-5fc9-42f3-9f10-2333b71f05cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.