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

Fix apt errors on Pop!_OS #396

Merged

Conversation

dale-c-anderson
Copy link
Contributor

@dale-c-anderson dale-c-anderson commented Dec 30, 2022

Tested on Pop!_OS 22.04, but this is a tiny fix which should work for any version (of pop or mint).

Closes #382
Closes #334

@dale-c-anderson dale-c-anderson changed the title Fix apt errors on pop os Fix apt errors on Pop!_OS Dec 30, 2022
@Guergeiro
Copy link

This is somewhat relevant to #334
Maybe having a consistent way of targeting Ubuntu based distros instead of conditionally chaining all logic.
For instance, I know that Linux Mint has a /etc/upstream-release/lsb-release.

@dale-c-anderson
Copy link
Contributor Author

@Guergeiro This could potentially be done more cleanly with a lookup table, but the real issue here is that there is no way to get the string ubuntu out of ansible facts for these distributions, so there's going to be some conditional logic no matter how you slice it. If you can demonstrate how parsing config files (which may or may not be present) is going to be cleaner than that, I'll buy you a beer.

I added support for Linux Mint to my PR. So now this can close #334 as well.

@stale
Copy link

stale bot commented May 21, 2023

This pull request has been marked 'stale' due to lack of recent activity. If there is no further activity, the PR will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark pull requests as stale.

@stale stale bot added the stale label May 21, 2023
@github-actions
Copy link

This pr has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

@github-actions github-actions bot closed this Jul 24, 2023
@geerlingguy geerlingguy removed the stale label Aug 10, 2023
@geerlingguy geerlingguy reopened this Aug 10, 2023
@geerlingguy
Copy link
Owner

The question I have is where is docker_apt_ansible_distribution defined?

@dale-c-anderson
Copy link
Contributor Author

dale-c-anderson commented Aug 10, 2023

@geerlingguy The way github highlights the diff by default, it's not all that easy to spot.

Line 39: https://github.com/geerlingguy/ansible-role-docker/pull/396/files#diff-23e21b6c89468f7534697ad091835b3ee5e0213b37ace489488234e5a9548ec4R39

(edited)

@dale-c-anderson
Copy link
Contributor Author

I see there's conflicts, which I'll get fixed up today.

@geerlingguy geerlingguy merged commit 914ca96 into geerlingguy:master Sep 28, 2023
9 checks passed
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.

Task 'Add Docker apt key' fails on Pop_OS! 22.04
3 participants