Problems running playbook as root when ansible_ssh_user specified

Hello,

I have been searching a couple of days off and on.

I am using ansible 1.7 and in the process of creating a playbook to check the kernel version and if it is lower than X check if python-simplejson is installed. If it is not then install the package.

Below is a sample of my simple playbook.

`

It appears from that output that your userB is failing to login at all to that system, so it’s never getting to the su step (which occurs after login). I would check your /var/log/secure or /var/log/auth.log (depending on your distro) to see what the error may be.