Ansible by default will invoke /bin/sh, if this is a symlink to bash, that
is what it ends up running.

This is done to be able to use a 'normal' set of shellisms.

The hostvar ansible_shell_type should ONLY be set if ansible_executable is
set to a non sh/bash compatible shell and this var should ONLY be set if
/bin/sh is NOT available (really only true in certain very restrictive
environments).

As for environment vars, you cannot rely on the user specific files as
Ansible attempts to avoid interactive logins when possible, you can use the
'environment:' directive at play/task level or set the variables in such a
way that non-interactive logins also get affected.

----------
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/CACVha7c97jh%3DuKDdG36qwoCn__FjL6YJ1z%3Dnf%3DY0uPsJ_AX5Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to