When installing packages through the Ansible’s dnf
module. How do I pass options like --nobest
to dnf
? Is there alternative to using raw shell commands.
When installing packages through the Ansible’s dnf
module. How do I pass options like --nobest
to dnf
? Is there alternative to using raw shell commands.
2
Answers
I had similar problem (but i’m using yum package manager) and figured a work around here
So, try to set full package url as package name and it should definitely work.
nobest
can be passed as a parameter while using the DNF module in the playbookYou can refer here dnf_module for other options/parameters that can be passed to the dnf ansible module
For example :