Create postgres user and db
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
6c9f12d24a
commit
78ebd719cd
1 changed files with 13 additions and 1 deletions
|
@ -11,7 +11,19 @@
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- 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
|
- name: Clone the regcfp flock2016 branch
|
||||||
git: repo=https://github.com/puiterwijk/regcfp.git
|
git: repo=https://github.com/puiterwijk/regcfp.git
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue