Set environment variables for a whole playbook or a role

Hi every body,

I know that It’s possible to set environnement variables for one task.

Is that possible to setup environment variables for a whole playbook or eventually a role ? (without add environnement keyword in every tasks)

Something like that :

The environment keyword currently applies to a specific task, for instance so you can apply the proxy to some tasks that need a proxy, and turn it off for some tasks that cannot use the proxy – which is a real world scenario for many people.

I’m open to pull requests that enable it at play level of course, and that would be a welcome addition. If not, you could also file a feature request on github.

Ok thanks for your answer.

If I find the time, I will code it and made a pull request.

Best regards,