# Ansible scipt error

**URL:** <https://forum.ansible.com/t/ansible-scipt-error/19505>\
**Category:** Ansible Developer\
**Created:** [October 14, 2015, 7:19pm UTC](https://forum.ansible.com/t/ansible-scipt-error/19505 "2015-10-14T19:19:59Z")\
**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:19pm UTC](https://forum.ansible.com/t/ansible-scipt-error/19505/1 "2015-10-14T19:19:59Z")

</div>

Hey Guys,  
any ideas about this :

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 22, 2015, 3:20am UTC](https://forum.ansible.com/t/ansible-scipt-error/19505/2 "2015-10-22T03:20:32Z")

</div>

first, this seems like a question for ansible-project, second, it  
looks like ansible cannot find the file where you told it.
