-
Notifications
You must be signed in to change notification settings - Fork 6
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
TASK: add python3-libdnf5 to default install for ansible? #211
Comments
@dcantrell Could you help answer some of these questions? |
Data:
|
At this point RHEL 9 will continue with dnf4 and RHEL 10 is slated to have dnf4. RHEL will not gain dnf5 until RHEL 11. Some people have asked about dnf5 in EPEL-10, but I don't know if we want to go down that path or not. IMHO, dnf5 needs a bit more stabilization time before it's ready for the EL crowd. |
@dcantrell this is regarding ELN (the future RHEL 11). Based on the assumption that dnf5 will replace dnf4 in RHEL 11, could you please advise on the above? |
dnf5 will replace dnf4 in RHEL 11, yes. So ELN should have that. We already made that change in Fedora, so if ELN has dnf now then it would be dnf5 (or at least should be). |
@dcantrell Right, but based on that, could you please review the questions in the ticket itself and advice accordingly? |
I probably don't know enough about ansible. Is ansible written in Python? If so, you will likely need python3-libdnf5 if you want to use dnf5 in ansible. With dnf5 being rewritten in C++, there are other language binding options. You can use the C++ library directly and remove the need for Python on the system entirely. But again, I don't know much about ansible. |
Yes, Ansible is written in Python.
Everything Ansible does relies on Python on the target system. |
So then any ELN system with ansible will need python3-libdnf5 and its requirements for dnf5 functionality in ansible. |
What does the ELN SIG need to do?
Following up to the switch to dnf5 (#201), it may be necessary to explicitly add python3 and python3-libdnf5[1] to the ELN installation set, with the exception of -minimal containers (or the like), for the purposes of allowing ansible-driven management in general, as well as package installation in particular, out of the box. While with dnf-4 the presence of python3 and python3-dnf was a given (and similarly with yum before that), with dnf5 (whose implementation is C++) neither can be assumed.
To that end, we need to determine, and then implement as appropriate:
ansible.default.dnf5
module was added in ansible-core 2.15. It looks like all supported Fedora versions as well as RHEL/CS 8 and 10 would cover this, but RHEL 9 is still on 2.14. Do we need to include python3-dnf to support that case (or anything else with an old ansible-core)?[1] https://docs.ansible.com/ansible/latest/collections/ansible/builtin/dnf5_module.html
The text was updated successfully, but these errors were encountered: