From 6c0cb8ecb12a5c0684a6361bc54a992638998673 Mon Sep 17 00:00:00 2001 From: Paul Lowndes Date: Sun, 7 Feb 2016 09:43:59 -1000 Subject: [PATCH] Add task to start PostgreSQL service --- tasks/postgres.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasks/postgres.yml b/tasks/postgres.yml index cbfe4c0..d5d55b7 100644 --- a/tasks/postgres.yml +++ b/tasks/postgres.yml @@ -18,6 +18,10 @@ pip: name=psycopg2 +- name: Ensure the PostgreSQL service is running + service: name=postgresql state=started enabled=yes + + - name: create postgres user for deployer postgresql_user: name: "{{ deployer }}"