From 9735ea05f7c19c98b90c1c14b163928586475c98 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 30 Jul 2020 16:12:34 +0200 Subject: [PATCH] Fix the configuration directory for the EL distributions. --- tasks/packages.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks/packages.yml b/tasks/packages.yml index 08e07f5..7bf36f8 100644 --- a/tasks/packages.yml +++ b/tasks/packages.yml @@ -13,9 +13,9 @@ yum: pkg={{ psql_el_pgdg_packages }} state={{ psql_pkg_state }} - name: Init the db if needed - command: /usr/pgsql-{{ psql_version }}/bin/postgresql-{{ psql_version }}-setup initdb + shell: "/usr/pgsql-{{ psql_version }}/bin/postgresql-{{ psql_version }}-setup" initdb args: - creates: '{{ psql_data_dir }}/postgresql.conf' + creates: '{{ psql_el_data_dir }}/postgresql.conf' when: - not psql_install_scl_version @@ -28,9 +28,9 @@ yum: pkg={{ psql_el_scl_packages }} state={{ psql_pkg_state }} - name: Init the db if needed - command: /opt/rh/rh-postgresql{{ psql_version }}/root/usr/bin/postgresql-setup --initdb + shell: /opt/rh/rh-postgresql{{ psql_version }}/root/usr/bin/postgresql-setup --initdb args: - creates: '{{ psql_data_dir }}/postgresql.conf' + creates: '{{ psql_el_data_dir }}/postgresql.conf' when: - psql_install_scl_version