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?