From c9e8204702fffa2841594aa64c4742c7260c202e Mon Sep 17 00:00:00 2001 From: "Patrick J. Roddy" Date: Fri, 15 Dec 2023 12:13:10 +0000 Subject: [PATCH] Make `postgresql` `RPM` link OS generic (#22) Fixes #21 --- roles/postgresql/defaults/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/postgresql/defaults/main.yml b/roles/postgresql/defaults/main.yml index 7aaa59ff..bf50320d 100644 --- a/roles/postgresql/defaults/main.yml +++ b/roles/postgresql/defaults/main.yml @@ -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"