Yes, still according to man pages /bin/sh started as login shell should source /etc/profile (as it does on e.g. CENTOS)
On Monday, 26 March 2018 13:44:31 UTC+2, Kai Stian Olstad wrote: > > On 26.03.2018 12:10, Martin Simovic wrote: > > However, this is happening when I use command module with args: > > executable=/bin/bash too. This kind of rules the dash theory out. > > It is almost like /etc/profile is ignored in any case. > > bash working the same as dash in this aspect. > > > > Still, on Centos/Sles it is sourced regardless of /bin/sh or /bin/bash > > use > > (I know that /bin/sh is symlink to /bin/bash on those distributions) > > bash has a posix mode is uses when bash is started with name sh, this > mode behave differently. > It's documented in the man pages. > > > -- > 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/0e41d48b-e1ea-45e6-aa63-5043c703be01%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
