Use the postgres role

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2016-01-22 13:02:39 +00:00
parent d388a09ad8
commit e0b2eb4d7f
2 changed files with 1 additions and 12 deletions

View file

@ -26,6 +26,7 @@
shell: "hostname {{inventory_hostname}}"
roles:
- postgresql_server
- regcfp
tasks:

View file

@ -6,21 +6,9 @@
- git
- nodejs
- npm
- postgresql
- postgresql-server
- python-psycopg2
tags:
- packages
- name: Initialize postgres if necessary
command: /usr/bin/postgresql-setup initdb
creates=/var/lib/pgsql/data/PG_VERSION
notify:
- restart postgresql
- name: start postgres
service: name=postgresql state=started enabled=yes
- name: Clone the regcfp flock2016 branch
git: repo=https://github.com/puiterwijk/regcfp.git
dest=/srv/regcfp