From 721c4d43af5985bea10afea66666b590e39c36c9 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 30 Jul 2020 16:20:00 +0200 Subject: [PATCH] Remove the tasks that install the packages from postgresql_org_repo.yml --- tasks/packages.yml | 4 ++-- tasks/postgresql_org_repo.yml | 8 -------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/tasks/packages.yml b/tasks/packages.yml index 20b4e49..a7f2ef7 100644 --- a/tasks/packages.yml +++ b/tasks/packages.yml @@ -13,7 +13,7 @@ yum: pkg={{ psql_el_pgdg_packages }} state={{ psql_pkg_state }} - name: Init the db if needed - shell: /usr/pgsql-{{ psql_version }}/bin/postgresql-{{ psql_version }}-setup initdb + command: /usr/pgsql-{{ psql_version }}/bin/postgresql-{{ psql_version }}-setup initdb args: creates: '{{ psql_el_data_dir }}/postgresql.conf' @@ -28,7 +28,7 @@ yum: pkg={{ psql_el_scl_packages }} state={{ psql_pkg_state }} - name: Init the db if needed - shell: /opt/rh/rh-postgresql{{ psql_version }}/root/usr/bin/postgresql-setup --initdb + command: /opt/rh/rh-postgresql{{ psql_version }}/root/usr/bin/postgresql-setup --initdb args: creates: '{{ psql_el_data_dir }}/postgresql.conf' diff --git a/tasks/postgresql_org_repo.yml b/tasks/postgresql_org_repo.yml index fec464b..7511292 100644 --- a/tasks/postgresql_org_repo.yml +++ b/tasks/postgresql_org_repo.yml @@ -17,14 +17,6 @@ - name: Install the pgsql pgdg repository yum: name={{ psql_el_pgdg_repo_url }} state={{ psql_pkg_state }} - - name: install the postgresql packages from the pgdg repository - 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 - args: - creates: '{{ psql_data_dir }}/postgresql.conf' - when: - pg_use_postgresql_org_repo - ansible_distribution_file_variety == "RedHat"