Thanks for clarifying my understanding and suggesting a workaround. 

It worked! 

On Thursday, October 1, 2015 at 7:18:39 PM UTC-4, Brian Coca wrote:
>
> source is not a command its a builtin in bash, ansible uses /bin/sh if 
> it is not a symlink to bash or bash is set to do strict sh you won't 
> have 'source', but you always have . which does the same thing. 
>
> that said 
>
>  shell: source /etc/profile 
>
> is a noop, it does nothing as ansible will open a new shell and that 
> info won't be available in other tasks. 
>
>
> you can do this to set an environment var for all tasks in a play: 
>
> - hosts: all 
>   environment: 
>        RHOME: /path/to/r 
>   tasks: 
>      - .... 
>
>
>
> -- 
> Brian Coca 
>

-- 
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/6fcb9929-b95f-4e07-a87c-c5330b0cfdba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to