# Ansible playbook

**URL:** <https://forum.ansible.com/t/ansible-playbook/19504>\
**Category:** Ansible Project\
**Created:** [October 14, 2015, 7:18pm UTC](https://forum.ansible.com/t/ansible-playbook/19504 "2015-10-14T19:18:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GBANE\_FETIGUE](https://avatars.discourse-cdn.com/v4/letter/g/6bbea6/32.png) [@GBANE\_FETIGUE](https://forum.ansible.com/u/GBANE_FETIGUE)\
**Post date:** [October 14, 2015, 7:18pm UTC](https://forum.ansible.com/t/ansible-playbook/19504/1 "2015-10-14T19:18:13Z")

</div>

Hi guys any ideas about this error

root@ip-172-16-20-180:/var/lib/jenkins/jobs/build-cs-utils/workspace/playbooks# ansible-playbook -i inventory/prod deploy\_system\_status.yml  
Enter the version you want to deploy:

PLAY [Deploy to status servers] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

GATHERING FACTS \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [prodstatus0]

TASK: [nodejs\_app | Put upstart script in place] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
**fatal: [prodstatus0] =\> Failed to template {{ lookup(‘file’, ‘~/credentials/prod\_postgres\_analytics\_db\_username’) }}: could not locate file in lookup: ~/credentials/prod\_postgres\_analytics\_db\_username**

FATAL: all hosts have already failed – aborting

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
to retry, use: --limit @/root/deploy\_system\_status.retry

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

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [October 24, 2015, 12:09am UTC](https://forum.ansible.com/t/ansible-playbook/19504/2 "2015-10-24T00:09:57Z")

</div>

what version of ansible? older lookups did not resolve ~ or env vars in paths.
