Help with conditional for environment variables

Hi,

I has a common roles, where I install all base packages.

Now we has some environments where need proxy and others where is not needed.

Some way to add

environment: proxy_env

just in some cases?

Thanks!
Ale

set diff versions proxy_env in group_vars/{has_env1,has_no_env} so
each group will get the environment they need

also use like:

environment: "{{proxy_env}}"

for the empty you can set:

proxy_env: {}