I have spent the last few hours trying to find a way to do this and keep 
running into formatting issues with every suggestion I find. 
What I am trying to accomplish is to have a variable that is set based on 
the value of another variable.

So if {{ group }} == dev* then I want to set uwsgi_env: development
but if {{ group }} == prod* then I want to set uwsgi_env: production

This seems really reasonable, is there a simple way to accomplish this in a 
playbook?

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/305e0ef4-e851-4301-bb62-0e99c94ef711%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to