Thanks Kai for the reply. Unfortunately it does not solve the problem. When using /bin/sh which is a link to /bin/dash, or when using /bin/bash, it seems that none of the user's profile files is used. I cannot modify /etc/pam.d/* or /etc/ssh/sshd* because everything works just fine when using ssh by itself as the same user I use for ansible.
If it's up to me, this is a bug as I find no reason why it should behave like it does when I run ansible as a normal user. Harald -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b5e325e1-a943-4714-ad6d-c286ce369bd5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.