Run initdb the first time to create the initial db

This commit is contained in:
Kevin Fenzi 2013-06-26 20:13:35 +00:00
parent 60ea109aa4
commit 880cdac5ec

View file

@ -11,10 +11,17 @@
tags:
- packages
- name: Set postgresql-server to run on boot
service: name=postgresql enabled=yes
ignore_errors: true
notify:
- restart postgresql
tags:
- service
- name: initialize postgresql
command: service postgresql initdb
creates=/var/lib/pgsql/data/postgresql.conf
ignore_errors: true
tags:
- service
- name: Set postgresql-server to run on boot
service: name=postgresql enabled=yes
ignore_errors: true
notify:
- restart postgresql
tags:
- service