Skip to content

Allow updating URLs in repositories#45

Open
z-bsod wants to merge 2 commits intoweareinteractive:masterfrom
z-bsod:master
Open

Allow updating URLs in repositories#45
z-bsod wants to merge 2 commits intoweareinteractive:masterfrom
z-bsod:master

Conversation

@z-bsod
Copy link

@z-bsod z-bsod commented Jan 14, 2026

to allow to update repo URLs there were two changes necessary:

  1. 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.

  2. 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

Christoph Sieber 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
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