Run the setup command if it hasn't already been run.

This commit is contained in:
Ralph Bean 2014-09-25 20:27:04 +00:00
parent 1fb5bd3524
commit 8651f11fd8

View file

@ -56,3 +56,10 @@
tags:
- cron
- postgresql
- name: Initialize postgres if necessary
command: /usr/bin/postgresql-setup initdb creates=/var/lib/pgsql/data
notify:
- restart postgresql
tags:
- postgresql