# Tower: setup.sh fails with "Please configure passwords in the inventory file before running setup"

**URL:** <https://forum.ansible.com/t/tower-setup-sh-fails-with-please-configure-passwords-in-the-inventory-file-before-running-setup/22085>\
**Category:** Ansible Project\
**Tags:** awx\
**Created:** [July 22, 2016, 11:50am UTC](https://forum.ansible.com/t/tower-setup-sh-fails-with-please-configure-passwords-in-the-inventory-file-before-running-setup/22085 "2016-07-22T11:50:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vasily\_Kirichenko](https://avatars.discourse-cdn.com/v4/letter/v/dc4da7/32.png) [@Vasily\_Kirichenko](https://forum.ansible.com/u/Vasily_Kirichenko)\
**Post date:** [July 22, 2016, 11:50am UTC](https://forum.ansible.com/t/tower-setup-sh-fails-with-please-configure-passwords-in-the-inventory-file-before-running-setup/22085/1 "2016-07-22T11:50:50Z")

</div>

inventory:

`[primary]`  
localhost ansible\_connection=local

[secondary]

[database]

[all:vars]  
admin\_password=‘p1’  
redis\_password=‘p1’  
pg\_password=‘p1’

#pg\_host=‘’  
#pg\_port=‘’

pg\_database=‘awx’  
pg\_username=‘awx’  
pg\_password=‘’

sudo ./setup.sh fails with following error:

`

TASK: [preflight | Preflight check - Passwords must be defined for a fresh install] \*\*\*  
failed: [localhost] =\> {“failed”: true, “item”: “”}  
msg: Please configure passwords in the inventory file before running setup

FATAL: all hosts have already failed – aborting

`

What I’m missing?

---

<div class="post-metadata">

**Author:** ![Slawek\_W](https://avatars.discourse-cdn.com/v4/letter/s/e56c9b/32.png) [@Slawek\_W](https://forum.ansible.com/u/Slawek_W)\
**Post date:** [August 25, 2016, 9:29pm UTC](https://forum.ansible.com/t/tower-setup-sh-fails-with-please-configure-passwords-in-the-inventory-file-before-running-setup/22085/2 "2016-08-25T21:29:51Z")

</div>

in Your file there is empy pg pass:  
pg\_password=’ ’

correct it and start install again

W dniu piątek, 22 lipca 2016 14:35:40 UTC+2 użytkownik Vasily Kirichenko napisał:
