Specify a PGDATA directory to prevent container re-create issues

This commit is contained in:
Matthew Jones 2017-10-31 10:20:08 -04:00
parent 0876d7825c
commit bf281f6ea9
No known key found for this signature in database
GPG Key ID: 76A4C17A97590C1C

View File

@ -94,6 +94,7 @@
POSTGRES_USER: "{{ pg_username }}"
POSTGRES_PASSWORD: "{{ pg_password }}"
POSTGRES_DB: "{{ pg_database }}"
PGDATA: "/var/lib/postgresql/data/pgdata"
when: pg_hostname is not defined or pg_hostname == ''
register: postgres_container_activate