Skip to content

Commit

Permalink
Merge pull request #58 from kysrpex/gpg_keys
Browse files Browse the repository at this point in the history
Add RHEL GPG key with PGDG prefix (allows installing PostgreSQL >= 11)
  • Loading branch information
mira-miracoli authored Sep 6, 2024
2 parents 53bf360 + d944281 commit 5222079
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tasks/redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@
register: __postgresql_repo_pkg_installed_result
ignore_errors: true

- name: Install repository key
- name: Install repository key (PostgreSQL v10 and below)
rpm_key:
key: https://download.postgresql.org/pub/repos/yum/keys/RPM-GPG-KEY-PGDG
state: present

- name: Install repository key (PostgreSQL v11 and above)
rpm_key:
key: https://download.postgresql.org/pub/repos/yum/keys/PGDG-RPM-GPG-KEY-RHEL
state: present

- name: Install pgdg repository package (RedHat)
yum:
name: >-
Expand Down

0 comments on commit 5222079

Please sign in to comment.