apt_rpm: add new states 'latest' and 'present_not_latest' (#8247)

* Add new states 'latest' and 'present_not_latest'.

* Improve documentation.
This commit is contained in:
Felix Fontein 2024-04-21 21:07:21 +02:00 committed by GitHub
commit 211688ef1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 27 additions and 10 deletions

View file

@ -0,0 +1,6 @@
minor_changes:
- "apt_rpm - add new states ``latest`` and ``present_not_latest``. The value ``latest`` is equivalent to the current behavior of
``present``, which will upgrade a package if a newer version exists. ``present_not_latest`` does what most users would expect ``present``
to do: it does not upgrade if the package is already installed. The current behavior of ``present`` will be deprecated in a later version,
and eventually changed to that of ``present_not_latest``
(https://github.com/ansible-collections/community.general/issues/8217, https://github.com/ansible-collections/community.general/pull/8247)."