Remove the tasks that install the packages from postgresql_org_repo.yml

This commit is contained in:
Andrea Dell'Amico 2020-07-30 16:20:00 +02:00
parent d01b802844
commit 721c4d43af
2 changed files with 2 additions and 10 deletions

View File

@ -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'

View File

@ -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"