mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
[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:
6
changelogs/fragments/8247-apt_rpm-latest.yml
Normal file
6
changelogs/fragments/8247-apt_rpm-latest.yml
Normal 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)."
|
||||
Reference in New Issue
Block a user