Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deb822 format for repository source file #495

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

LaggingHero
Copy link

Recently, I upgraded a series of VMs from Ubuntu 22.04 to 24.04; Docker had been installed on all of them using this role.

After completing the upgrade, I noticed that the /etc/apt/sources.list.d/ directory contained the file docker.list.distUpgrade, which was created from the old docker.list (added by the role), along with docker.sources, a deb822-formatted file that was automatically generated.

When I tried rerunning the role, the docker.list file was recreated, and on the first apt update, many warnings appeared because there were two files referencing the same repository:
docker-warning

Since the deb822 format is already used with Ubuntu 24.04 and the one-line format will be deprecated in the future, would it be possible to introduce it within the role?

I have prepared this PR for this purpose. Let me know if any changes are needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant