lists-dev: install postgresql

This commit is contained in:
Aurélien Bompard 2015-02-13 15:32:34 +00:00
parent db0e4830a9
commit 1ad2739c53

View file

@ -53,14 +53,23 @@
dest=/etc/yum.repos.d/hyperkitty.repo mode=0444
# Database
- name: install postgresql server packages
yum: name={{ item }} state=present
with_items:
- postgresql-server
- postgresql-contrib
- python-psycopg2
- name: initialize postgresql
command: /usr/bin/postgresql-setup initdb
creates=/var/lib/pgsql/data/postgresql.conf
- name: copy pg_hba.conf
copy: src="{{ files }}/lists-dev/pg_hba.conf" dest=/var/lib/pgsql/data/pg_hba.conf
owner=postgres group=postgres
notify:
- restart postgresql
- name: start postgresql
service: state=started name=postgresql