# SSH fine but keep getting errors running test playbook

**URL:** <https://forum.ansible.com/t/ssh-fine-but-keep-getting-errors-running-test-playbook/23653>\
**Category:** Ansible Project\
**Created:** [February 6, 2017, 8:03pm UTC](https://forum.ansible.com/t/ssh-fine-but-keep-getting-errors-running-test-playbook/23653 "2017-02-06T20:03:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shiyan\_Cao](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@Shiyan\_Cao](https://forum.ansible.com/u/Shiyan_Cao)\
**Post date:** [February 6, 2017, 8:03pm UTC](https://forum.ansible.com/t/ssh-fine-but-keep-getting-errors-running-test-playbook/23653/1 "2017-02-06T20:03:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Johannes\_Kastl](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Post date:** [February 7, 2017, 12:14pm UTC](https://forum.ansible.com/t/ssh-fine-but-keep-getting-errors-running-test-playbook/23653/2 "2017-02-07T12:14:44Z")

</div>

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
