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

Change defaults in the next major release #369

Merged
merged 3 commits into from
Sep 28, 2023

Conversation

kaysond
Copy link
Contributor

@kaysond kaysond commented Aug 9, 2022

Setting up this PR to update some default options the next time a major release is going to happen:

For the latter

@geerlingguy
Copy link
Owner

Has a couple conflicts now, but marking this as planned since I want to do it soon-ish.

@kaysond
Copy link
Contributor Author

kaysond commented Nov 1, 2022

Rebased

@kaysond
Copy link
Contributor Author

kaysond commented Feb 18, 2023

@geerlingguy any updates on when you'll do the next major release?

@kaysond kaysond force-pushed the new_defaults branch 2 times, most recently from 41e8503 to 298b1d2 Compare February 22, 2023 06:43
@kaysond
Copy link
Contributor Author

kaysond commented Sep 27, 2023

Bump. @geerlingguy - can we get a 7.0.0?

@geerlingguy
Copy link
Owner

There's currently a merge conflict in this PR but keep bumping once that's fixed and we'll get there :)

@kaysond
Copy link
Contributor Author

kaysond commented Sep 27, 2023

@geerlingguy done

@geerlingguy geerlingguy merged commit 1fad075 into geerlingguy:master Sep 28, 2023
9 checks passed
@kaysond kaysond deleted the new_defaults branch September 28, 2023 02:10
@gizero
Copy link

gizero commented Sep 29, 2023

@kaysond @geerlingguy Having this merged caused me the same problem it was supposed to fix (#335) but the other way around. I had docker installed by a previous version of this role and upgrading the role to 7.0.0 led me into the situation where two different apt sources where present and conflicting:

fatal: [slapp01]: FAILED! => {"changed": false, "msg": "E:Conflicting values set for option Signed-By regarding source https://download.docker.com/linux/ubuntu/ jammy: /etc/apt/trusted.gpg.d/docker.asc != , E:The list of sources could not be read."}

I understand this change to the role's defaults was released as a major version bump which may introduce breaking changes, but I don't clearly see what is the right upgrade path supposed to be. Should I have added in advance a task to my playbooks to ensure the existing apt source file (the one which name is automatically generated by the apt_repository module when no filename option was given) is removed if present? If that's the case, I don't see the real point of this change. Could you please help understanding? TIA

@kaysond
Copy link
Contributor Author

kaysond commented Sep 29, 2023

@kaysond @geerlingguy Having this merged caused me the same problem it was supposed to fix (#335) but the other way around. I had docker installed by a previous version of this role and upgrading the role to 7.0.0 led me into the situation where two different apt sources where present and conflicting:

fatal: [slapp01]: FAILED! => {"changed": false, "msg": "E:Conflicting values set for option Signed-By regarding source https://download.docker.com/linux/ubuntu/ jammy: /etc/apt/trusted.gpg.d/docker.asc != , E:The list of sources could not be read."}

I understand this change to the role's defaults was released as a major version bump which may introduce breaking changes, but I don't clearly see what is the right upgrade path supposed to be. Should I have added in advance a task to my playbooks to ensure the existing apt source file (the one which name is automatically generated by the apt_repository module when no filename option was given) is removed if present? If that's the case, I don't see the real point of this change. Could you please help understanding? TIA

@gizero - you just needed to set the docker_apt_filename variable to whatever the filename is on your existing installs. For example, on debian, the default was download_docker_com_linux_debian (the module adds .list automatically). You probably need to delete one of the files if you've currently got both.

The reason for the change is to align with the Docker installation docs.

This could probably be more clear in the docs... There might be a way to detect the old one and set the variable dynamically, but it might need to be hardcoded by OS

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

Successfully merging this pull request may close these issues.

3 participants