Closed vanch closed 2 years ago
IMO if MIT server fails, a another task (before or after) could be added to try and get the key from URL on postgresql.org: https://www.postgresql.org/media/keys/ACCC4CF8.asc
EDIT what I did is add (on my local branch of this repo), before this task:
the following task (at the beginning of the file):
- name: Install pgdg package signing key from Postgresql.org URL (Debian/pgdg)
apt_key:
url: https://www.postgresql.org/media/keys/ACCC4CF8.asc
id: ACCC4CF8
register: __postgresql_apt_key_result
until: __postgresql_apt_key_result is succeeded
retries: 5
delay: 5
when: postgresql_flavor is defined and postgresql_flavor == "pgdg"
and modify the when clause on the initial task as follows (adding __postgresql_apt_key_result is not succeeded
):
when:
- postgresql_flavor is defined and postgresql_flavor == "pgdg"
- __postgresql_apt_key_result is not succeeded # added: don't ask the MIT server for key if got key from postgresql.org
This worked for me today when the MIT server failed consistently. Thanks @vanch !
This can probably be closed now that PR #35 has been merged.
@joystein I think this should stay open until a version containing the changes is released! @natefoo do you have plans to create a new tag? Currently having the keyserver issues and would love to see this released soon :+1:
Thanks for the ping, tagged as 1.1.1 and released.
When using pgdg flavor, there may be an issue with MIT PGP server
And there is nothing I can do with that :(