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.




On Fri, Feb 21, 2014 at 7:02 AM, <[email protected]> wrote:

> 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 :
> ---
>  - hosts: webservers
>    roles:
>      - php
>      - nginx
>    environment:
>      http_proxy: http://my.proxy:8080
>
> I have try lot of things and check the source but I find nothing :(
>
> Thanks in advance for your answers,
> Best regards,
> Julien
>
>
>  --
> 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 [email protected].
> To post to this group, send email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to