diff --git a/Ansible/ansible_collections/jfrog/platform/roles/postgres/defaults/main.yml b/Ansible/ansible_collections/jfrog/platform/roles/postgres/defaults/main.yml index 7772a8b1..9a729efb 100644 --- a/Ansible/ansible_collections/jfrog/platform/roles/postgres/defaults/main.yml +++ b/Ansible/ansible_collections/jfrog/platform/roles/postgres/defaults/main.yml @@ -7,6 +7,9 @@ postgres_listen_addresses: 0.0.0.0 # Default port of Postgres server postgres_port: 5432 +# Location of GPG key used to sign the RPMs +postgres_rpmkey_url: "https://download.postgresql.org/pub/repos/yum/keys/PGDG-RPM-GPG-KEY-RHEL" + # Server version in package: postgres_server_pkg_version: "{{ postgres_version | replace('.', '') }}" diff --git a/Ansible/ansible_collections/jfrog/platform/roles/postgres/tasks/RedHat.yml b/Ansible/ansible_collections/jfrog/platform/roles/postgres/tasks/RedHat.yml index db98a20d..110ebf34 100644 --- a/Ansible/ansible_collections/jfrog/platform/roles/postgres/tasks/RedHat.yml +++ b/Ansible/ansible_collections/jfrog/platform/roles/postgres/tasks/RedHat.yml @@ -37,7 +37,7 @@ - name: Import PostgreSQL GPG public key become: true ansible.builtin.rpm_key: - key: https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG + key: "{{ postgres_rpmkey_url }}" state: present register: download_postgresql_key until: download_postgresql_key is success