Repository navigation
Update apt_repository to deb822_repository for mariadb, nginx and php - #1669
Merged
Merged
Conversation
as per deprecation warning.
as per Ansible deprecation warning.
As per Ansible deprecation warning.
Member
|
Looks like |
# Conflicts: # roles/php/tasks/main.yml
apt-key and apt_key are gone on Ubuntu 26.04 and Debian 13, and apt_repository is deprecated in favor of deb822 .sources files. - Write each repository to its own .sources file with its signing key in /etc/apt/keyrings. The nginx and MariaDB keys are fetched by deb822_repository; the Sury key keeps its fingerprint check. - Remove the legacy .list files apt_repository created, so existing servers don't end up with duplicate sources - Replace nginx_ppa and mariadb_ppa with *_repo_uri, *_repo_suite and *_repo_signing_key, and fail with a clear message if the old variables are still set - Install python3-debian, which deb822_repository requires Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
|
Thanks for starting this. I merged master into the branch and finished it: |
retlehs
approved these changes
Nov 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Switches the nginx, MariaDB and Sury PHP repositories from
apt_repository+apt_keytodeb822_repository.Besides the Ansible deprecation, this is required for Ubuntu 26.04 (#1663) and Debian 13: both removed
apt-key, so theapt_keytasks fail withFailed to find required executable "apt-key".Changes
.sourcesfile (nginx,mariadb,sury-php) withSigned-Bypointing to a key in/etc/apt/keyrings. The nginx and MariaDB keys are fetched bydeb822_repository, and the Sury key keeps its fingerprint check..listfiles created byapt_repositoryare removed first, so existing servers don't end up with duplicate sources.nginx_ppaandmariadb_ppaare replaced bynginx_repo_uri/nginx_repo_suite/nginx_repo_signing_keyandmariadb_repo_uri/mariadb_repo_suite/mariadb_repo_signing_key. If an old variable is still set, provisioning fails with a message pointing to the new ones rather than silently ignoring the override.python3-debianis added to the base packages, sincedeb822_repositoryrequires it.ubuntu. That's the same on Ubuntu and is groundwork for Debian.Testing
On an Ubuntu 24.04 Lima VM previously provisioned with the old
.listsources:.listfiles with.sourcesfiles, andapt-get updateran with no warnings or Signed-By conflicts. The nginx, MariaDB and PHP candidates came from the expected repos, and the site still returned 200.nginx,mariadbandphproles reportedchanged=0.-e nginx_ppa=foofails with the replacement message.pytest tests/templatesand the playbook syntax checks pass.The keys previously added with
apt_keyremain in/etc/apt/trusted.gpgon existing servers. They're harmless, and Trellis doesn't clean them up.🤖 Generated with Claude Code