# Installation of Ansible Tower fails at "determine if postgresql user exists"

**URL:** <https://forum.ansible.com/t/installation-of-ansible-tower-fails-at-determine-if-postgresql-user-exists/19547>\
**Category:** Ansible Project\
**Created:** [October 19, 2015, 11:20am UTC](https://forum.ansible.com/t/installation-of-ansible-tower-fails-at-determine-if-postgresql-user-exists/19547 "2015-10-19T11:20:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Felix\_Glaske](https://avatars.discourse-cdn.com/v4/letter/f/b77776/32.png) [@Felix\_Glaske](https://forum.ansible.com/u/Felix_Glaske)\
**Post date:** [October 19, 2015, 11:20am UTC](https://forum.ansible.com/t/installation-of-ansible-tower-fails-at-determine-if-postgresql-user-exists/19547/1 "2015-10-19T11:20:06Z")

</div>

I have setup a blank VM and configured Ansible Tower via “.configure.sh” and answering the questions.  
After that I tried to install via “./setup.sh”

Playbook always fails at:

TASK: [postgres | determine if postgresql user exists] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [coconut] =\> error while evaluating conditional: pg\_user\_exists.stdout != ‘1’

FATAL: all hosts have already failed – aborting

I’m using Ansible 1.9.3

---

<div class="post-metadata">

**Author:** ![Brad\_Bendily](https://avatars.discourse-cdn.com/v4/letter/b/5daacb/32.png) [@Brad\_Bendily](https://forum.ansible.com/u/Brad_Bendily)\
**Post date:** [October 19, 2015, 2:44pm UTC](https://forum.ansible.com/t/installation-of-ansible-tower-fails-at-determine-if-postgresql-user-exists/19547/2 "2015-10-19T14:44:50Z")

</div>

I just installed Ansible the other day. I think you need to install postgresql separately.  
There are several steps during the install that the playbook doesn’t account for very well.

One package, can’t remember which, maybe postgres, i had to install it, then the installer uninstalled my version and installed its own.

---

<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 19, 2015, 3:24pm UTC](https://forum.ansible.com/t/installation-of-ansible-tower-fails-at-determine-if-postgresql-user-exists/19547/3 "2015-10-19T15:24:16Z")

</div>

for tower questions please email support@ansible.com or go to  
[http://support.ansible.com](http://support.ansible.com) this ML is for the OSS project.
