Skip to content

Commit

Permalink
Deploy GPG keys to fixed location
Browse files Browse the repository at this point in the history
Fixes #1
  • Loading branch information
bviktor committed Nov 17, 2024
1 parent 34b1c77 commit 34b77d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions tasks/install_el.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
name: PostgreSQL
package: postgresql17-server
gpg_file: PGDG-RPM-GPG-KEY
gpg_dest: /etc/pki/rpm-gpg/PGDG-RPM-GPG-KEY
repo_file: "pgdg-{% if ansible_distribution == 'Fedora' %}fedora{% else %}redhat{{ ansible_distribution_major_version }}{% endif %}"
1 change: 1 addition & 0 deletions tasks/install_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
name: PostgreSQL
package: postgresql-17
gpg_url: https://www.postgresql.org/media/keys/ACCC4CF8.asc
gpg_dest: /etc/apt/trusted.gpg.d/apt.postgresql.org.asc
repo_file: pgdg
3 changes: 1 addition & 2 deletions templates/pgdg.list.j2
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
#deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt {{ ansible_distribution_release }}-pgdg main
deb https://apt.postgresql.org/pub/repos/apt {{ ansible_distribution_release }}-pgdg main
deb [signed-by=/etc/apt/trusted.gpg.d/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt {{ ansible_distribution_release }}-pgdg main

0 comments on commit 34b77d4

Please sign in to comment.