I'm completely new to all this, but looking at
http://jinja.pocoo.org/docs/dev/templates/#variables
I'd try to do it like this:
environments:
prod:
vpc_id: 12345
stg:
vpc_id: 67890
env: prod
debug: msg={{ environments[env].vpc_id }}
--
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/047df22f-ce81-4f62-810b-c9dc43ae1183%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.