Use the postgres role
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
d388a09ad8
commit
e0b2eb4d7f
2 changed files with 1 additions and 12 deletions
|
@ -26,6 +26,7 @@
|
|||
shell: "hostname {{inventory_hostname}}"
|
||||
|
||||
roles:
|
||||
- postgresql_server
|
||||
- regcfp
|
||||
|
||||
tasks:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue