Files
community.general/plugins/modules
Alexei Znamensky dd5bd733fc apt_rpm: handle update-kernel rc=1 when no new kernel is available (#11949)
* fix(apt_rpm): do not fail when update-kernel finds no new kernel

update-kernel exits with rc=1 when the kernel is already at the latest
version. Handle this case gracefully by checking for the known
"There are no available kernels" message in stderr and returning
changed=False instead of raising an error.

Fixes #10055

* fix(apt_rpm): add changelog fragment for #11949

* Apply suggestion from review

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-02 10:09:54 +02:00
..
2026-04-29 23:04:06 +12:00
2026-04-15 20:03:16 +02:00