artis3n / ansible-role-tailscale

Ansible role to install and configure a Tailscale node.
https://galaxy.ansible.com/artis3n/tailscale
MIT License
399 stars 68 forks source link

[FEAT] Support for dnf5 #517

Open benoitlx opened 3 hours ago

benoitlx commented 3 hours ago

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

artis3n commented 3 hours ago

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.