Browse Source

Ups, missed file

feature/ansible_provision
Juan Manuel Parrilla 7 years ago
parent
commit
8c4d04dcf8
  1. 16
      provisioning/roles/shelfzilla/tasks/post_postgresql.yml

16
provisioning/roles/shelfzilla/tasks/post_postgresql.yml

@ -0,0 +1,16 @@
---
- name: Initiate PostgreSQL database
action: shell /sbin/service postgresql initdb
creates=/var/lib/pgsql/data/postgresql.conf
sudo: yes
notify:
- start postgresql
- shelfzilla md5 postgres access
- create root user for postgres
- ensure database is created
- ensure user has access to database
- ensure user does not have unnecessary privilege
- meta: flush_handlers