SSH fine but keep getting errors running test playbook

Hi,

Does anyone know why I’m getting the error? SSH connection is working fine.

ansible-playbook -i inventory/qalabs -l xxxxxxx -u root -D test.yml

PLAY [all] *********************************************************************

TASK [setup] *******************************************************************

fatal: [xxxxxx]: FAILED! => {“failed”: true, “msg”: “failed to resolve remote temporary directory from ansible-tmp-1486411214.9-201171589973071: mkdir -p \" echo $HOME/.ansible/tmp/ansible-tmp-1486411214.9-201171589973071 \" && echo \" echo $HOME/.ansible/tmp/ansible-tmp-1486411214.9-201171589973071 \" returned empty string”}

NO MORE HOSTS LEFT *************************************************************

to retry, use: --limit @test.retry

PLAY RECAP *********************************************************************

xxxxxxx : ok=0 changed=0 unreachable=0 failed=1

Does using an ad-hoc ping work?

ansible -m ping foobar
(where foobar is your target hostname)

If yes, run your playbook with -v (or even -vvv) to get some more output.

Johannes