From 8790be31541f468bce4fad05e95fec17d41e7247 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Tue, 2 Dec 2014 08:55:13 -0800 Subject: [PATCH] Now that we have all of the postgres db being blown away the package manager is initializing a new db. We don't need to do it manually anymore --- .../integration/roles/setup_postgresql_db/tasks/main.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/integration/roles/setup_postgresql_db/tasks/main.yml b/test/integration/roles/setup_postgresql_db/tasks/main.yml index 1b3f103961..91571f49ef 100644 --- a/test/integration/roles/setup_postgresql_db/tasks/main.yml +++ b/test/integration/roles/setup_postgresql_db/tasks/main.yml @@ -52,9 +52,12 @@ command: /sbin/service postgresql initdb when: ansible_os_family == "RedHat" and ansible_distribution_major_version|int <= 6 -- name: Iniitalize postgres (upstart) - command: /usr/bin/pg_createcluster {{ pg_ver }} main - when: ansible_os_family == 'Debian' +# The package install should initialize a db cluster provided that the old db +# cluster was entirely removed. So this shouldn't be needed +#- name: Iniitalize postgres (upstart) +# command: /usr/bin/pg_createcluster {{ pg_ver }} main +# ignore_errors: True +# when: ansible_os_family == 'Debian' - name: Copy pg_hba into place copy: src=pg_hba.conf dest="{{ pg_hba_location }}" owner="postgres" group="root" mode="0644"