On 26.03.2018 15:24, Martin Simovic wrote:
Yes, still according to man pages /bin/sh started as login shell should
source /etc/profile (as it does on e.g. CENTOS)

As I wrote in my first reply since Ansible is just executing a command(s), it doesn't use login shell/interactive shell, it uses non-interactive shell.

The same as this that will run env in a non-interactive shell
ssh user@host env

So that is why non of the profile files is being read, so you need to use /etc/environment or make a hack yourself.

What Centos does I don't know since I don't use it.


--
Kai Stian Olstad

--
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/ba780ae474dec00964d650488050ff59%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to