Yes and no, ansible avoids using a login shell, so vars defined for the user that rely on that won't be picked up. Sudo , by default, also removes most vars from the source user and can set it's own vars for the target user, it also does not normally pickup vars that depend on login to be set.
-- 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/CAJ5XC8n3SbwjzEz7JHCmbUSc8CsjEcYpm0uQXFy_g79%3DHf0Ytw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
