Skip to content

Conversation

@andyfoston
Copy link

@andyfoston andyfoston commented Aug 21, 2024

SUMMARY

Make apt_repository PPA repos use gpg instead of apt-key as this is now deprecated.

Also, the --keyserver GPG option is also deprecated, so this part of the functionality has been replaced with Ansible's fetch_file

Finally, the GPG key is now pulled from the Ubuntu keyserver over HTTPS instead of HTTP.

ISSUE TYPE
  • Feature Pull Request
ADDITIONAL INFORMATION

This follows these instructions for adding external repositories

apt-key has been deprecated, so this has been switched to use gpg instead.
Also, the --keyserver option for gpg has also been deprecated, so use of
this has also been removed.
@ansibot ansibot added feature This issue/PR relates to a feature request. needs_triage Needs a first human triage before being processed. module This issue/PR relates to a module. labels Aug 21, 2024
@webknjaz webknjaz added the ci_verified Changes made in this PR are causing tests to fail. label Aug 21, 2024
@ansibot

This comment was marked as resolved.

@ansibot ansibot added the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. label Aug 21, 2024
@ansibot ansibot added the needs_ci This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI. label Aug 21, 2024
@ansibot ansibot removed the needs_ci This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI. label Aug 22, 2024
@webknjaz
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@bcoca bcoca removed the needs_triage Needs a first human triage before being processed. label Aug 22, 2024
@ansibot ansibot removed needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. ci_verified Changes made in this PR are causing tests to fail. labels Aug 22, 2024
@s-hertel
Copy link
Contributor

@andyfoston When we discussed this in triage today, we came to the consensus that it's probably time to deprecate apt_repository (and apt_key). There is already a good replacement which uses the recommended approach for handling keys, adding the key to the specific repo as opposed to globally. Sorry for not considering this before sending you down a rabbit hole (and thanks for taking an interest in fixing it!).

@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Sep 5, 2024
@ansibot ansibot added the needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html label Jan 26, 2025
@ansibot ansibot added the stale_pr This PR has not been pushed to for more than one year. label Aug 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature This issue/PR relates to a feature request. module This issue/PR relates to a module. needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. stale_pr This PR has not been pushed to for more than one year.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants