Remove the tasks that install the packages from postgresql_org_repo.yml
This commit is contained in:
parent
d01b802844
commit
721c4d43af
|
@ -13,7 +13,7 @@
|
||||||
yum: pkg={{ psql_el_pgdg_packages }} state={{ psql_pkg_state }}
|
yum: pkg={{ psql_el_pgdg_packages }} state={{ psql_pkg_state }}
|
||||||
|
|
||||||
- name: Init the db if needed
|
- 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:
|
args:
|
||||||
creates: '{{ psql_el_data_dir }}/postgresql.conf'
|
creates: '{{ psql_el_data_dir }}/postgresql.conf'
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
yum: pkg={{ psql_el_scl_packages }} state={{ psql_pkg_state }}
|
yum: pkg={{ psql_el_scl_packages }} state={{ psql_pkg_state }}
|
||||||
|
|
||||||
- name: Init the db if needed
|
- 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:
|
args:
|
||||||
creates: '{{ psql_el_data_dir }}/postgresql.conf'
|
creates: '{{ psql_el_data_dir }}/postgresql.conf'
|
||||||
|
|
||||||
|
|
|
@ -17,14 +17,6 @@
|
||||||
- name: Install the pgsql pgdg repository
|
- name: Install the pgsql pgdg repository
|
||||||
yum: name={{ psql_el_pgdg_repo_url }} state={{ psql_pkg_state }}
|
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:
|
when:
|
||||||
- pg_use_postgresql_org_repo
|
- pg_use_postgresql_org_repo
|
||||||
- ansible_distribution_file_variety == "RedHat"
|
- ansible_distribution_file_variety == "RedHat"
|
||||||
|
|
Loading…
Reference in New Issue