diff --git a/test/integration/roles/setup_postgresql_db/tasks/main.yml b/test/integration/roles/setup_postgresql_db/tasks/main.yml index 91571f49ef2..d306ac3b7a2 100644 --- a/test/integration/roles/setup_postgresql_db/tasks/main.yml +++ b/test/integration/roles/setup_postgresql_db/tasks/main.yml @@ -52,12 +52,11 @@ command: /sbin/service postgresql initdb when: ansible_os_family == "RedHat" and ansible_distribution_major_version|int <= 6 -# 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: Iniitalize postgres (upstart) + command: /usr/bin/pg_createcluster {{ pg_ver }} main + # Sometimes package install creates the db cluster, sometimes this step is needed + 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"