Skip to content

Make apt_repository PPA repos use gpg instead of apt-key - #83835

Closed
andyfoston wants to merge 6 commits into
ansible:develfrom
andyfoston:use-gpg-not-apt-key-ppa
Closed

andyfoston wants to merge 6 commits into
ansible:develfrom
andyfoston:use-gpg-not-apt-key-ppa

Conversation

@andyfoston

@andyfoston andyfoston commented Aug 21, 2024 •

Copy link
Copy Markdown
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
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
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
Copy Markdown
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
@ansibot

ansibot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Hi @andyfoston!

Thank you very much for your submission to Ansible. It means a lot to us that you've taken the time to contribute.

Unfortunately, we currently ask that first-time contributors only have one open pull request. This will help you to learn what an acceptable pull request is like and also help us keep up with the review queue.

Since you already have an active pull request open at #83775, we are automatically closing this one for now. Once your other PR is merged or closed, please feel free to reopen this one or submit it again.

Thank you for understanding!

click here for bot help

@ansibot ansibot closed this Jun 17, 2026
@ansible ansible locked as resolved and limited conversation to collaborators Jul 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bot_closed 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