Hi, I am observing following behaviour using ansible on set of Ubuntu-1604, SLES-12 and CentOS-7 hosts.
Environment variables, normally avaiable for login shell (/bin/bash) are not avaiable via ansible "setup" or "shell" modules for Ubuntu-16.04. Yet the same variables (defined in /etc/profile) are available for both these modules for SLES and CentOS distributions. Seems as if ansible run shell as login shell for Sles and Centos, and non-login shell for Ubuntu. This inconsistency is killing me. Anyone came across this? Possible solution? Many Thanks Martin. -- 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/41ff76ad-688e-4990-b09f-fd150f15fec2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
