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
DNF module upgrades modules with state: present
or state: installed
#76384
Comments
Files identified in the description: If these files are incorrect, please update the |
related #75311 |
I guess maybe the 2 lines to install and enable the module are not indented far enough? ansible/lib/ansible/modules/dnf.py Lines 1056 to 1059 in c56d98e
|
state: present
or state: installed
AppStream does not retain old versions. So, I think we need to prepare a repository (including modules) for testing to prevent degressive behavior in the future. |
state: present
or state: installed
state: present
or state: installed
It also occurs when not in check mode |
See 76467 for some details particularly my last comment which is related. The issue here with installing module seems to be that e.g.,: This looks good:
This doesn't look correct, I would expect it to show like the above " is already installed."
|
this gets even more fun because the Ansible |
This issue still persists with Ansible 2.14.0 and dnf 4.7.0* or 4.4.2* on CentOS 8 Stream. Are there any updates on this topic or the PR provided in above comments? (#76467) |
Still an issue with Ansible 2.16.2 running on RHEL 8.6. |
Summary
When running the DNF module with
state: present
orstate: installed
, certain packages will be upgraded even though they should be skipped with that parameter.Issue Type
Bug Report
Component Name
dnf
Ansible Version
Configuration
$ ansible-config dump --only-changed
OS / Environment
CentOS 8
Steps to Reproduce
redis package is already installed.
Next, run the following playbook.
Expected Results
With
state: present
orinstalled
, it is expected that packages with available updates do not get updated.Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: