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

[FEAT] Support for dnf5 #517

Open
benoitlx opened this issue Nov 17, 2024 · 1 comment
Open

[FEAT] Support for dnf5 #517

benoitlx opened this issue Nov 17, 2024 · 1 comment
Labels
bug This bug is confirmed and can be reproduced. enhancement New feature or request

Comments

@benoitlx
Copy link

Is your feature request related to a problem? Please describe.
I tried to use this role to deploy Tailscale on a Fedora 41 server, but encountered an issue because of the changes introduced in dnf5. Specifically, the dnf config-manager command syntax has changed between dnf4 and dnf5, causing compatibility issues when trying to add the Tailscale repository using the role.

Describe the solution you'd like
Update the role to support both dnf4 and dnf5. This can be achieved by checking the dnf version and using the appropriate syntax for adding repositories.

Describe alternatives you've considered
Alternatively, I have manually edited this file by replacing line 20 with the following :

ansible.builtin.command: dnf config-manager addrepo --from-repofile={{ tailscale_dnf_repos[ansible_distribution] }}

Additional context
n/a

@benoitlx benoitlx added the enhancement New feature or request label Nov 17, 2024
@artis3n
Copy link
Owner

artis3n commented Nov 17, 2024

https://github.com/geerlingguy/docker-fedora41-ansible caught my eye this weekend but I hadn't made a ticket yet - thank you! Will take a look in a few days.

@artis3n artis3n added the bug This bug is confirmed and can be reproduced. label Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This bug is confirmed and can be reproduced. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants