From ab173c649a2309252bd8e7964375ac30edb48b4f Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Tue, 16 Jun 2015 14:13:37 +0000 Subject: [PATCH] Also, initialize postgres. --- roles/taiga/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/taiga/tasks/main.yml b/roles/taiga/tasks/main.yml index 54a3fd6915..909a13f325 100644 --- a/roles/taiga/tasks/main.yml +++ b/roles/taiga/tasks/main.yml @@ -34,6 +34,12 @@ notify: restart postgresql tags: taiga +- name: Initialize postgres if necessary + command: /usr/bin/postgresql-setup initdb + creates=/var/lib/pgsql/data + notify: restart postgresql + tags: taiga + # No need to let postgres talk to the world, right? #- name: Let postgresql listen to '*' # command: sed -i -e "s|#listen_addresses = 'localhost'|listen_addresses = '*'|" /var/lib/pgsql/data/postgresql.conf