thank you but my understanding is that environment is only to set proxy.

Le mercredi 25 mai 2016 13:13:33 UTC+2, Johannes Kastl a écrit :
>
> On 25.05.16 13:06 fanvalt wrote: 
> > Hello, 
> > 
> > is it possible to run the .profile on the target server to be able to 
> run a 
> > shell using these env variables ? 
>
> I think that is what setting the environment is for. Ansible uses an 
> non-interactive shell. 
>
> From the docs: 
> - hosts: all 
>   remote_user: root 
>   tasks: 
>     - apt: name=cobbler state=installed 
>       environment: 
>         http_proxy: http://proxy.example.com:8080 
>
> https://docs.ansible.com/ansible/playbooks_environment.html 
>
> Johannes 
>
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f9b52676-e2f3-4076-b87b-f0577d067fdf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to