# What do you use external postgresql or inner postgresql in playbook?

**URL:** <https://forum.ansible.com/t/what-do-you-use-external-postgresql-or-inner-postgresql-in-playbook/30622>\
**Category:** AWX Project\
**Created:** [June 21, 2019, 1:11am UTC](https://forum.ansible.com/t/what-do-you-use-external-postgresql-or-inner-postgresql-in-playbook/30622 "2019-06-21T01:11:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris12](https://avatars.discourse-cdn.com/v4/letter/c/49beb7/32.png) [@Chris12](https://forum.ansible.com/u/Chris12)\
**Post date:** [June 21, 2019, 1:11am UTC](https://forum.ansible.com/t/what-do-you-use-external-postgresql-or-inner-postgresql-in-playbook/30622/1 "2019-06-21T01:11:36Z")

</div>

What do you use external postgresql or inner postgresql in playbook?

---

<div class="post-metadata">

**Author:** ![Raja\_V](https://avatars.discourse-cdn.com/v4/letter/r/8dc957/32.png) [@Raja\_V](https://forum.ansible.com/u/Raja_V)\
**Post date:** [July 18, 2019, 5:00pm UTC](https://forum.ansible.com/t/what-do-you-use-external-postgresql-or-inner-postgresql-in-playbook/30622/2 "2019-07-18T17:00:08Z")

</div>

Chris,  
Its up to you to use external DB or else new pg service will be created

---

<div class="post-metadata">

**Author:** ![Garrett\_Kelly](https://avatars.discourse-cdn.com/v4/letter/g/cab0a1/32.png) [@Garrett\_Kelly](https://forum.ansible.com/u/Garrett_Kelly)\
**Post date:** [July 22, 2019, 3:07pm UTC](https://forum.ansible.com/t/what-do-you-use-external-postgresql-or-inner-postgresql-in-playbook/30622/3 "2019-07-22T15:07:39Z")

</div>

I chose to go with the postgresql container on the same host running the other docker containers.

My reasoning for this is that the VM is portable, ease to manage/maintain, and any restores (whether from snapshots or our backup solution) are simplified. I suppose it also largely depends on whether your shop has experienced DBA’s willing to manage postgresql and the load expected upon the AWX service.
