lists-dev: install postgresql
This commit is contained in:
parent
db0e4830a9
commit
1ad2739c53
1 changed files with 9 additions and 0 deletions
|
@ -53,14 +53,23 @@
|
||||||
dest=/etc/yum.repos.d/hyperkitty.repo mode=0444
|
dest=/etc/yum.repos.d/hyperkitty.repo mode=0444
|
||||||
|
|
||||||
# Database
|
# Database
|
||||||
|
- name: install postgresql server packages
|
||||||
|
yum: name={{ item }} state=present
|
||||||
|
with_items:
|
||||||
|
- postgresql-server
|
||||||
|
- postgresql-contrib
|
||||||
|
- python-psycopg2
|
||||||
|
|
||||||
- name: initialize postgresql
|
- name: initialize postgresql
|
||||||
command: /usr/bin/postgresql-setup initdb
|
command: /usr/bin/postgresql-setup initdb
|
||||||
creates=/var/lib/pgsql/data/postgresql.conf
|
creates=/var/lib/pgsql/data/postgresql.conf
|
||||||
|
|
||||||
- name: copy pg_hba.conf
|
- name: copy pg_hba.conf
|
||||||
copy: src="{{ files }}/lists-dev/pg_hba.conf" dest=/var/lib/pgsql/data/pg_hba.conf
|
copy: src="{{ files }}/lists-dev/pg_hba.conf" dest=/var/lib/pgsql/data/pg_hba.conf
|
||||||
owner=postgres group=postgres
|
owner=postgres group=postgres
|
||||||
notify:
|
notify:
|
||||||
- restart postgresql
|
- restart postgresql
|
||||||
|
|
||||||
- name: start postgresql
|
- name: start postgresql
|
||||||
service: state=started name=postgresql
|
service: state=started name=postgresql
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue