[PR #8247/211688ef backport][stable-8] apt_rpm: add new states 'latest' and 'present_not_latest' (#8268)

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

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

* Improve documentation.

(cherry picked from commit 211688ef1b)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot]
2024-04-21 21:16:28 +02:00
committed by GitHub
parent b4e61a554f
commit 0486389f8e
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)."