Create postgres user and db

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2016-01-22 12:49:48 +00:00
parent 6c9f12d24a
commit 78ebd719cd

View file

@ -11,7 +11,19 @@
tags:
- packages
# Todo: Create the database
- name: Initialize postgres if necessary
command: /usr/bin/postgresql-setup initdb
creates=/var/lib/pgsql/data
notify:
- restart postgresql
- name: Create database
postgresql_db: name=regcfp
- name: Create postgres db user
postgresql_user: db=regcfp name=regcfp
password="{{ regcfp_db_password }}"
priv=CONNECT/regcfp:ALL
- name: Clone the regcfp flock2016 branch
git: repo=https://github.com/puiterwijk/regcfp.git