check for PG_VERSION as the data dir exists already

This commit is contained in:
Kevin Fenzi 2016-10-17 17:42:36 +00:00
parent a084964c5e
commit aab2c5f044

View file

@ -35,7 +35,7 @@
- name: Initialize postgres if necessary
command: /usr/pgsql-9.4/bin/postgresql94-setup initdb
creates=/var/lib/pgsql/9.4-bdr/data
creates=/var/lib/pgsql/9.4-bdr/data/PG_VERSION
notify:
- restart postgresql94
tags: