Allow updating URLs in repositories#45
Open
z-bsod wants to merge 2 commits intoweareinteractive:masterfrom
Open
Allow updating URLs in repositories#45z-bsod wants to merge 2 commits intoweareinteractive:masterfrom
z-bsod wants to merge 2 commits intoweareinteractive:masterfrom
Conversation
added 2 commits
January 14, 2026 11:37
fixes the order of the tasks in the main.yml. If the current repo configuration of the system is invalid the playbook fails in the "update" step of the install.yml part and is unable to setup the repository correctly because this step would only be executed later on in the "manage.yml" task. Changing the order here ensures that the repositories are setup correctly before trying to update the package list or installing any packages from them.
this allows updating the repository url instead of adding a new version of the repo with the updated url
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.
to allow to update repo URLs there were two changes necessary:
add a setting to remove a repository file before setting up the repository
you can set "update_url" to true on the repository definition to force a removal of the repository file before adding the repository (requires the filename to be set on the repo as well). This way it doesn't add the new repository url as an additional url to the existing repo but the file only contains the configured url instead.
change the order of the tasks in the main.yml file
as the tasks in install.yml do a package list update and package installation these require the repository to be setup correctly beforehand