Skip to content

Commit

Permalink
Make postgresql RPM link OS generic (#22)
Browse files Browse the repository at this point in the history
Fixes #21
  • Loading branch information
paddyroddy authored Dec 15, 2023
1 parent 97ccd7b commit c9e8204
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion roles/postgresql/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ postgresql_data_directory: "/var/lib/pgsql/{{ postgresql_version }}/data"
# mirsg.postgresql - download and install
postgresql_install:
disable_gpg_check: false
rpm: "https://download.postgresql.org/pub/repos/yum/reporpms/EL-{{ ansible_facts['distribution_major_version'] }}-x86_64/pgdg-redhat-repo-latest.noarch.rpm"
rpm: >-
https://download.postgresql.org/pub/repos/yum/reporpms/EL-{{
ansible_facts['distribution_major_version'] }}-{{
ansible_facts['architecture'] }}/pgdg-redhat-repo-latest.noarch.rpm
yum_package: "{{ postgresql_package_name }}-server"
yum_contrib_package: "{{ postgresql_package_name }}-contrib"

Expand Down

0 comments on commit c9e8204

Please sign in to comment.