host_vars/group_vars issue with ansible 1.1+

When you say environment, do you mean the “environment:” keyword on a task?

Can I see an example playbook?

As far as “way to see how”, you are asking code questions. Precedence orders are documented on the “Advanced Playbooks” page though.

Impossible to say without detailed examples.