1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-30 07:50:43 +00:00
Commit graph

3269 commits

Author SHA1 Message Date
patchback[bot]
7035d14d80
[PR #12361/bbf8bb47 backport][stable-12] OpenNebula inventory fails if VM without NIC exists (#12365)
OpenNebula inventory fails if VM without NIC exists (#12361)

* fix error of opennebula plugin when retrieving VM without NIC

* add changelog fragment

* added more descriptive name, added link to PR



---------


(cherry picked from commit bbf8bb47d9)

Co-authored-by: Simon <4375225+skropf@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-06-30 04:46:57 +00:00
patchback[bot]
c046ffe5fa
[PR #12350/3e239e58 backport][stable-12] snap: fix misspelling (#12353)
snap: fix misspelling (#12350)

(cherry picked from commit 3e239e5853)

Co-authored-by: Shane Frasier <maverick@maverickdolphin.com>
2026-06-25 19:14:12 +02:00
patchback[bot]
4138faac65
[PR #12339/2354b40d backport][stable-12] composer: restore compatibility with older composer versions (#12343)
composer: restore compatibility with older composer versions (#12339)

* Restore compatibility.

* Adjust tests.

(cherry picked from commit 2354b40d10)

Co-authored-by: Felix Fontein <felix@fontein.de>
2026-06-25 07:27:48 +02:00
patchback[bot]
9726f0b599
[PR #12329/40bb8ea1 backport][stable-12] Improve documentation of idrac_redfish_info module (#12333)
Improve documentation of idrac_redfish_info module (#12329)


(cherry picked from commit 40bb8ea1ae)

Signed-off-by: Jens Meißner <meissner@b1-systems.de>
Co-authored-by: Jens Meißner <meissner@b1-systems.de>
2026-06-23 21:02:01 +02:00
patchback[bot]
7e074191c9
[PR #12290/3f3149a2 backport][stable-12] jenkins_plugin: improved descriptions for a parameter and a return value (#12335)
jenkins_plugin: improved descriptions for a parameter and a return value (#12290)

* Improved descriptions for a parameter and a return value

- Improved description of parameter "name".
- Improved description of return value "plugin".
- Added note about unique identifier of Jenkins plugins.

* Fixed documentation syntax in plugins/modules/jenkins_plugin.py



* Removed the point in note with incorrect syntax and using single-quotes to enclose double-quotes

* Added pointer to notes section for more information



---------


(cherry picked from commit 3f3149a25d)

Co-authored-by: Sonal Karmakar <234934724+sonalkarmakar@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-06-23 21:01:50 +02:00
Felix Fontein
61f5bb93e6
[stable-12] Change modules ownership account (#12207) (#12300)
Change modules ownership account (#12207)

(cherry picked from commit b669a6e237)

Co-authored-by: alexander <skotttt228@gmail.com>
2026-06-20 14:32:07 +02:00
patchback[bot]
56e3de349e
[PR #12235/33ae6c10 backport][stable-12] filesystem: handle BusyBox blkid output when detecting existing filesystem (#12272)
filesystem: handle BusyBox `blkid` output when detecting existing filesystem (#12235)

* fix(filesystem): handle BusyBox blkid output when detecting existing filesystem

BusyBox blkid ignores util-linux -o/-s flags and outputs the full device
info line instead of just the filesystem type. Parse the TYPE= field from
the raw output when it does not look like a plain type name.

Fixes #7283

* changelog: add fragment for PR 12235

(cherry picked from commit 33ae6c1018)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2026-06-14 20:55:48 +02:00
patchback[bot]
7b00d2c445
[PR #12238/f4339d8c backport][stable-12] java_cert: detect silent keytool failures by verifying import outcome (#12267)
java_cert: detect silent `keytool` failures by verifying import outcome (#12238)

* fix(java_cert): detect silent keytool failures by verifying import outcome



* test(java_cert): add integration tests for silent keytool failure detection



* changelog: add fragment for PR 12238



* dummy

---------


(cherry picked from commit f4339d8c0d)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-14 08:38:38 +02:00
patchback[bot]
77af16097b
[PR #12206/ff7f90fb backport][stable-12] Fix dnf_config_manager incompatibility with DNF5 (#12265)
* Fix dnf_config_manager incompatibility with DNF5 (#12206)

* Extract fixtures from dnf_config_manager tests

* Implement support for DNF5

* Format code

(cherry picked from commit ff7f90fb4f)

* Exclude dnf_config_manager fixtures from trailing space check.

(cherry picked from commit ebb813680e)

---------

Co-authored-by: Maksym Hazevych <mhazevych@mailbox.org>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-06-14 07:54:06 +02:00
patchback[bot]
6cd8c06f79
[PR #12022/6c2301db backport][stable-12] zypper_repository: fix enabled/autorefresh/gpgcheck being overridden by .repo file content (#12250)
zypper_repository: fix `enabled`/`autorefresh`/`gpgcheck` being overridden by .repo file content (#12022)

* fix(zypper_repository): stop .repo file content overriding user-specified enabled/autorefresh/gpgcheck

When repo= pointed to a .repo file, values parsed from that file were
overwriting the desired state set from module params, causing enabled: false
to have no effect.

Fixes #8783

* changelog: add fragment for PR 12022

* fix(zypper_repository): preserve .repo file settings when parameters are not explicitly provided

When enabled/autorefresh/disable_gpg_check are not provided by the user,
fall back to values from the .repo file before applying hard defaults,
so that existing tasks relying on the .repo file content are not broken.



---------


(cherry picked from commit 6c2301db33)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-13 17:33:59 +02:00
patchback[bot]
d100f4b8fd
[PR #12067/f677c2ab backport][stable-12] counter_enabled callback: display output for looped tasks (#12240)
counter_enabled callback: display output for looped tasks (#12067)

* fix(counter_enabled): display output for looped tasks with delegate_to

Implement v2_runner_item_on_ok, v2_runner_item_on_failed, and
v2_runner_item_on_skipped so that looped tasks (including those
using delegate_to: localhost) produce visible output.

Also extract _host_label, _display_result_ok, _display_result_failed,
and _display_result_skipped helpers to eliminate repeated delegation
and message-building logic across the callback methods.

Fixes #8187



* changelog(counter_enabled): add fragment for PR #12067



* test(counter_enabled): add integration tests, adjust _host_label



* test(counter_enabled): migrate integration tests to callback test framework



* test(counter_enabled): fix integration tests to use set_fact instead of debug



---------


(cherry picked from commit f677c2ab7d)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-13 17:33:50 +02:00
patchback[bot]
20ab9c3b5b
[PR #12151/994b7560 backport][stable-12] java_cert: fix PKCS12 password not passed to keytool -list (#12242)
java_cert: fix PKCS12 password not passed to `keytool -list` (#12151)

* fix(java_cert): remove -noprompt from keytool -list to allow stdin password

-noprompt is not a valid option for keytool -list (only for importkeystore/
importcert). On Java 8, passing it caused keytool to skip reading the store
password from stdin, resulting in a null password and NullPointerException.

Fixes #3023



* test(java_cert): add idempotency test for pkcs12 import with password

Exercises _export_public_cert_from_pkcs12 when the alias already exists,
verifying the password is correctly read from stdin on the comparison path.



* changelog: add fragment for PR 12151



---------


(cherry picked from commit 994b756026)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-13 17:33:40 +02:00
patchback[bot]
b641cc9ca0
[PR #12149/3fa258f5 backport][stable-12] udm_dns_record: fix idempotency with shortened IPv6 addresses (#12244)
udm_dns_record: fix idempotency with shortened IPv6 addresses (#12149)

* fix(udm_dns_record): normalize IPv6 addresses before comparison

UCS stores IPv6 addresses in expanded form; providing a shortened address
causes obj.diff() to always detect a difference and report changed=True.
Normalize IPv6 values in the data dict to exploded form before updating
the Univention object.

Fixes #317

* changelog: add fragment for PR 12149

* add type hint

(cherry picked from commit 3fa258f5a8)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2026-06-13 17:33:31 +02:00
patchback[bot]
fd4128e375
[PR #12122/b12c21f0 backport][stable-12] launchd: fix restarted and reloaded always reporting changed=False (#12246)
launchd: fix `restarted` and `reloaded` always reporting `changed=False` (#12122)

* fix(launchd): restarted and reloaded always report changed

Both actions unconditionally execute commands (unload/load/start),
so changed must always be True in non-check mode, regardless of
whether the PID or state happened to match before and after.



* feat(changelog): add fragment for PR 12122



* fix(launchd): restarted and reloaded always report changed in check mode too



* consolidate if branches

---------


(cherry picked from commit b12c21f0ce)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-13 17:33:22 +02:00
patchback[bot]
b4e3d32e5a
[PR #12148/5004c9f7 backport][stable-12] xml: preserve DOCTYPE declaration when writing XML files (#12248)
xml: preserve DOCTYPE declaration when writing XML files (#12148)

* fix(xml): preserve DOCTYPE declaration when writing XML files

Pass `doctype=tree.docinfo.doctype` to all `ElementTree.write()` calls
so lxml does not silently drop the DOCTYPE on serialization. Also replace
`etree.tostring()` with BytesIO+write() in the diff and xmlstring paths
for consistency.

Fixes #2762



* test(xml): add integration test for DOCTYPE preservation



* feat(changelog): add fragment for xml DOCTYPE fix (#12148)



---------


(cherry picked from commit 5004c9f70f)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-13 17:33:13 +02:00
patchback[bot]
358770eb14
[PR #12185/213581be backport][stable-12] fix: treat chdev execution failures as module errors in aix_devices (#12196)
fix: treat chdev execution failures as module errors in aix_devices (#12185)

* fix: treat chdev execution failures as module errors in aix_devices

##### SUMMARY
Fix the aix_devices module so that a failed chdev command is reported as a module failure instead of a successful result.

The previous implementation called fail_json incorrectly by returning success through the normal completion path when chdev returned a non-zero exit status. This could allow a playbook to continue even though the requested device attribute change was not applied.

This change replaces the success-style error handling with proper failure handling in the chdev execution path, making task results consistent with the actual command outcome.

##### ISSUE TYPE
- Bugfix Pull Request

##### COMPONENT NAME
aix_devices

##### ADDITIONAL INFORMATION
The affected code path is in change_device_attr() when the module executes chdev to apply attribute updates.

Before this change:
- chdev could fail
- the module could still report success
- later tasks could run against an unexpected system state

After this change:
- chdev failures are returned through fail_json
- the task stops with an error
- playbook behavior matches the real execution result

```paste below
Before:
module.exit_json(msg="Failed to run chdev.", rc=rc, err=err)

After:
module.fail_json(msg="Failed to run chdev.", rc=rc, err=err)
```

* Add changelog fragment for aix_devices chdev failure fix (#12185)

---------


(cherry picked from commit 213581bef8)

Co-authored-by: Hirofumi Arimoto <hiro0107@users.noreply.github.com>
Co-authored-by: Hirofumi Arimoto <harimoto@jp.ibm.com>
2026-06-05 13:47:30 +02:00
patchback[bot]
0b1201e710
[PR #12182/4d66b3da backport][stable-12] opkg - path_prefix needs to be a list (#12189)
opkg - path_prefix needs to be a list (#12182)

* opkg - path_prefix needs to be a list

path_prefix is passed to get_bin_path() which expects opt_dirs to be a list
of paths. Passing in a string instead of a list of paths results in incorrect
values being adding to the path when searching for the command to run.

* Add changelog

(cherry picked from commit 4d66b3dae8)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2026-06-05 07:34:41 +02:00
patchback[bot]
1def2a7ebe
[PR #12140/48db8630 backport][stable-12] filetree lookup: handle invalid exclude regex with AnsibleError (#12183)
filetree lookup: handle invalid exclude regex with AnsibleError (#12140)

* filetree lookup - handle invalid exclude regex with AnsibleError Wrap re.compile() for the exclude option so invalid regular expressions produce a clear AnsibleError instead of an uncaught re.error traceback.

* add changelog fragment

* add changelog fragment

* Fix changelog fragment line endings (LF)



* Used AnsibleLookupError instead of AnsibleError

* Update changelogs/fragments/12140-filetree-exclude-regex-error.yml



* Used AnsibleLookupError instead of AnsibleError

* Updated changelog format

---------



(cherry picked from commit 48db863096)

Co-authored-by: Santosh Mahale <santoshmahale7676@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-06-04 06:28:35 +02:00
patchback[bot]
10f86cff19
[PR #12163/f9d4f0ad backport][stable-12] Fix incus Windows modules with ansible-core 2.21 (#12178)
Fix incus Windows modules with ansible-core 2.21 (#12163)

* Fix incus Windows modules with ansible-core 2.21

* strip wrapper quotes for payload flags (-enc, -encodedcommand, -command, -c, -file, -f) before incus exec argv handoff, added changelogs

* Fixed some edge cases for powershell parsing

* Fixed changelogs

* Fixed pep8 format

* Added warning message when modifying direct commands

* Fixed changelogs fragement

(cherry picked from commit f9d4f0ad6b)

Co-authored-by: Simon Bouchard <simon.bouchard23@gmail.com>
2026-06-02 21:18:39 +02:00
patchback[bot]
e3816514a8
[PR #12167/97b464de backport][stable-12] version_sort filter: fix example's description (#12170)
version_sort filter: fix example's description (#12167)

Fix description in example of community.general.version_sort filter

Example had some left overs, that were not aligned with code.
It was explaining conversion between tuples and dict. But example here maps list of strings to list of strings.

(cherry picked from commit 97b464deb3)

Co-authored-by: juremedvesek <jure.medvesek@xlab.si>
2026-06-02 21:18:20 +02:00
patchback[bot]
eed2e1d2ac
[PR #12124/b799c6f5 backport][stable-12] redfish_config: fix KeyError: 'ret' when SetManagerNic cannot find a matching NIC (#12173)
redfish_config: fix `KeyError: 'ret'` when `SetManagerNic` cannot find a matching NIC (#12124)

* fix(redfish_config): return proper error dict when manager NIC not found

get_manager_ethernet_uri() returned an empty dict {} when no matching NIC
was found, causing a KeyError on 'ret' in main(). Now returns a consistent
{"ret": False, "msg": ...} like all other error paths in the function.

Fixes #5892

* feat(changelog): add fragment for PR 12124

(cherry picked from commit b799c6f579)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2026-06-02 21:18:06 +02:00
patchback[bot]
6da3c81889
[PR #12168/1e3da48d backport][stable-12] portage: include msg in depclean failure fail_json (#12174)
portage: include msg in depclean failure fail_json (#12168)

cleanup_packages() called module.fail_json(cmd=, rc=, stdout=, stderr=)
without the mandatory msg= argument. When the underlying emerge --depclean
exited non-zero, AnsibleModule.fail_json() itself crashed with
"AnsibleModule.fail_json() missing 1 required positional argument: 'msg'"
before the real failure could reach the controller, leaving users with no
diagnostic about why depclean actually failed.

Same wording style as the sibling install_packages() failure branch
("Packages not installed.").

(cherry picked from commit 1e3da48d70)

Co-authored-by: Yoann Gauthier-Colin <yoann@gwerlas.net>
2026-06-02 21:17:55 +02:00
patchback[bot]
a58bb6af00
[PR #12123/49ca175f backport][stable-12] htpasswd: fix hash_scheme aliases and Apache-compatible bcrypt (#12155)
htpasswd: fix `hash_scheme` aliases and Apache-compatible bcrypt (#12123)

* fix(htpasswd): support HtpasswdFile aliases and Apache-compatible bcrypt

CryptContext does not recognise HtpasswdFile alias names such as
portable, portable_apache_24, host_apache_24, causing a KeyError.
In addition, building a CryptContext for bcrypt produced $2b$ hashes
that Apache rejects (it only accepts $2y$/$2a$).

Use htpasswd_context for schemes it already supports, fall back to
htpasswd_context on KeyError for aliases, and import CryptContext
from module_utils/_crypt.py instead of passlib directly.

Fixes #6135



* feat(changelog): add fragment for PR 12123



* fix(_crypt): silence DeprecationWarning when importing stdlib crypt

On Python 3.11/3.12, `import crypt` emits a DeprecationWarning that
ansible-test sanity --test import treats as an error. Suppress it since
the import is an intentional fallback when passlib is not available.



* fix(htpasswd): fix sanity ignores and bcrypt version constraint

- Revert _crypt.py DeprecationWarning suppression; add sanity ignore
  entries for htpasswd.py import-3.11/3.12 instead (mirrors existing
  entries for _crypt.py itself)
- Pin bcrypt<4.2 in integration tests: bcrypt 4.2 removed __about__
  which passlib 1.7.x uses, breaking passlib.apache import
- Fix regex_search assertion to use 'is not none' for a boolean result
- Add bcrypt version constraint note to module documentation



* fix(htpasswd): handle system-installed bcrypt in integration tests

On Debian/Ubuntu, bcrypt may be installed by the system package manager
with no RECORD file, making pip downgrade impossible. Move bcrypt
installation into a self-contained block in test_schemes.yml with
ignore_errors, a functional passlib+bcrypt check, and always-cleanup.
Bcrypt tests are skipped when a compatible version cannot be used.



* refactor(htpasswd): extract obtain_crypt_context(); import CryptContext from passlib directly

Extract context selection logic into obtain_crypt_context(). Import
CryptContext inside the deps.declare("passlib") block instead of from
module_utils/_crypt.py — passlib is already a hard dependency and
other symbols are imported from it there. Remove now-unnecessary
htpasswd.py sanity import ignore entries.



---------


(cherry picked from commit 49ca175f01)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-31 16:58:55 +02:00
patchback[bot]
31aabddc46
[PR #12121/6e6199ae backport][stable-12] parted: ignore MBR partition type codes in flags on SUSE systems (#12146)
parted: ignore MBR partition type codes in flags on SUSE systems (#12121)

* parted: ignore MBR partition type codes reported as flags by SUSE parted

SUSE's patched parted reports MBR partition type codes (e.g., type=8e for
Linux LVM) in the machine-parseable flags output. The module was trying to
unset these pseudo-flags via 'parted set N type=8e off', which is not a
valid parted command, causing the task to fail when using flags: [lvm] on
msdos-labelled disks on SUSE systems.

Fixes #6292



* feat(changelog): add fragment for PR 12121

* Update changelogs/fragments/12121-parted-suse-msdos-type-code.yml



---------



(cherry picked from commit 6e6199ae3d)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-31 08:35:36 +02:00
patchback[bot]
789789f202
[PR #12137/5d62edc6 backport][stable-12] pamd: handle non-PAM lines in authselect profile files (#12144)
pamd: handle non-PAM lines in authselect profile files (#12137)

* fix(pamd): handle non-PAM lines in authselect profile files



* test(pamd): add test for authselect directive lines



* feat(changelog): add fragment for PR 12137



---------


(cherry picked from commit 5d62edc673)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-31 00:05:00 +02:00
patchback[bot]
2e628f9895
[PR #12113/ef5b22d1 backport][stable-12] unixy callback: fix KeyError when task is delegated to host without ansible_host set (#12142)
unixy callback: fix KeyError when task is delegated to host without ansible_host set (#12113)

* fixes issue #12112

* adjust PR ID

* adjust PR ID, mistake was made

* adjust PR ID

* I messed up all these numbers

---------


(cherry picked from commit ef5b22d18e)

Co-authored-by: Stefan Midjich <stemid@users.noreply.github.com>
Co-authored-by: Stefan Midjich <stefan@sydit.se>
2026-05-30 20:29:37 +02:00
patchback[bot]
410383e95f
[PR #12084/8468fea3 backport][stable-12] composer: config file hash to evaluate whether a change occurred (#12131)
composer: config file hash to evaluate whether a change occurred (#12084)

* composer: Use config file hash to evaluate whether a change occurred (instead of unreliable output). Ensure `--working-dir` option consistently comes first (sudo-friendly)

* Update plugins/modules/composer.py



* whitespace fixes + changelog fragment

* Update changelogs/fragments/composer-working-dir-and-config-sha256.yaml



* Update changelogs/fragments/composer-working-dir-and-config-sha256.yaml



* Update plugins/modules/composer.py



* fragment

* ruff format  plugins/modules/composer.py

---------



(cherry picked from commit 8468fea3b0)

Co-authored-by: Raphaël Droz <raphael@droz.eu>
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-30 14:34:42 +02:00
patchback[bot]
cd057ddcdb
[PR #12106/50046965 backport][stable-12] lxc_container: Fix create_script in plugins/module_utils/_lxc.py (#12110)
lxc_container: Fix create_script in plugins/module_utils/_lxc.py (#12106)

* Fix create_script in plugins/module_utils/_lxc.py

* Added changelog fragment

* Apply suggestions from code review - updated typing



* Apply suggestion from code review - fixed docstring argument name



* Apply suggestion from code review



* Update plugins/module_utils/_lxc.py



---------



(cherry picked from commit 50046965c9)

Co-authored-by: usbpc <3638901+usbpc@users.noreply.github.com>
Co-authored-by: Kevin Holm <kevin@holm.dev>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-27 12:48:57 +02:00
patchback[bot]
3e276c4e6e
[PR #12085/fdace385 backport][stable-12] nmcli: fix check/diff for bond arp_interval and arp_ip_target (#11588) (#12091)
nmcli: fix check/diff for bond arp_interval and arp_ip_target (#11588) (#12085)

* nmcli: bond ARP options stop lying in check/diff (#11588)

Align arp_interval/arp_ip_target keys with bond.options parsing, route
ARP settings via +bond.options, and fix bond MTU false positives.

* Changelog: nmcli fragment gets PR links and clearer diff wording

Address reviewer feedback on #12085 — both entries now cite the PR URL
and the MTU entry says "incorrectly reports diff" instead of "false positives".

---------


(cherry picked from commit fdace38501)

Co-authored-by: Asif Draxi <47986843+AsifAd@users.noreply.github.com>
Co-authored-by: Asif Draxi <asif.draxi@blackline.com>
2026-05-23 21:40:22 +02:00
patchback[bot]
232d27b9ab
[PR #12078/e6ca0df5 backport][stable-12] Fix typing (#12079)
* Fix typing (#12078)

Fix typing.

ansible-core 2.21.0 is out and has more type definitions.

(cherry picked from commit e6ca0df592)

* Also add no-assert to 2.17 ignore file.

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-19 08:25:30 +02:00
Felix Fontein
dedbedf917 Revert "[PR #11996/2cb4a5d4 backport][stable-12] gitlab_user: update SSH keys when key material changes (#12038)"
This reverts commit b94ac3fa21.
2026-05-17 12:59:18 +02:00
patchback[bot]
3e50838589
[PR #12063/3558e3c7 backport][stable-12] Fix flatpak id check (#12073)
Fix flatpak id check (#12063)

* Fix flatpak id check

This PR fixes the flatpak ID check by allowing the last component of the ID to contain dashes. The regular expression will match the flatpak ID according to the flatpak specification. It matches all 4600+ IDs currently present in flathub.

Fixes #12062

* Add changelog fragment

* Update plugins/modules/flatpak.py



* Update changelog fragment.

---------


(cherry picked from commit 3558e3c74a)

Co-authored-by: Gerben Welter <gerben@welter.nu>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-17 11:49:48 +02:00
patchback[bot]
c54ddec34a
[PR #12039/c2485ea5 backport][stable-12] apt_rpm: fix upgrade of local RPM not present in repository (#9161) (#12066)
apt_rpm: fix upgrade of local RPM not present in repository (#9161) (#12039)

(cherry picked from commit c2485ea57b)

Co-authored-by: bne1hm <67783534+bne1hm@users.noreply.github.com>
2026-05-17 11:09:43 +02:00
patchback[bot]
fb3e873d98
[PR #12064/9cba458e backport][stable-12] cargo: fix version parsing when state=latest (#12069)
cargo: fix version parsing when `state=latest` (#12064)

* fix(cargo): fix greedy regex in get_latest_published_version

Fixes #8949

* docs(cargo): add changelog fragment for #12064

(cherry picked from commit 9cba458e3e)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2026-05-17 11:09:33 +02:00
patchback[bot]
7304fd6b3c
[PR #12065/2f83a5b0 backport][stable-12] selective callback plugin: align host names in stats output (#12071)
selective callback plugin: align host names in stats output (#12065)

* fix(selective): align host names in stats output



* changelog(selective): add fragment for PR #12065



---------


(cherry picked from commit 2f83a5b084)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-17 11:09:29 +02:00
patchback[bot]
bd8740892a
[PR #12055/a15d9a35 backport][stable-12] packet_project and packet_sshkey: fix broken example plays (#12058)
packet_project and packet_sshkey: fix broken example plays (#12055)

Fix example plays.

(cherry picked from commit a15d9a3510)

Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-16 10:57:02 +02:00
patchback[bot]
9b567c686f
[PR #12047/eb69d25e backport][stable-12] apk: document non-interactive mode requirement (#12051)
apk: document non-interactive mode requirement (#12047)

* apk: document non-interactive mode requirement

* apk: fix file path markup in documentation

Change file path markup from E() to C() in the notes section.



---------


(cherry picked from commit eb69d25e45)

Co-authored-by: Francisco Pereira <113396399+Francisco-xiq@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-14 21:53:04 +02:00
patchback[bot]
6d710fe05c
[PR #11911/fba7da43 backport][stable-12] Remove as maintainer (#12043)
Remove as maintainer (#11911)

Remove ownership

I do not maintain those modules anymore since years. I think the time
has come to remove at least my name from them.

(cherry picked from commit fba7da4394)

Co-authored-by: keachi <1687482+keachi@users.noreply.github.com>
2026-05-14 11:03:48 +02:00
patchback[bot]
87ce1e09a3
[PR #12030/6e48c5fc backport][stable-12] xml: adjust example doc (#12035)
xml: adjust example doc (#12030)

(cherry picked from commit 6e48c5fc4e)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2026-05-13 08:08:04 +02:00
patchback[bot]
dad425d3c6
[PR #12024/00060263 backport][stable-12] bundler: replace deprecated CLI flags with BUNDLE_* env vars (#12037)
bundler: replace deprecated CLI flags with `BUNDLE_*` env vars (#12024)

* fix(bundler): replace deprecated CLI flags with BUNDLE_* env vars

Bundler 2.1 deprecated --deployment, --without, --path, --clean, and
--binstubs; Bundler 4 has removed --clean entirely. Pass these options
as BUNDLE_* environment variables instead, which have been supported
since Bundler 1.0.0 and are scoped to the process (no persistent
.bundle/config written).

Fixes #4583, fixes #11380



* fix(bundler): add changelog fragment for PR #12024



---------


(cherry picked from commit 00060263a5)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-13 08:07:49 +02:00
patchback[bot]
46f6a7a69a
[PR #12019/171feb5a backport][stable-12] datadog_downtime: handle uuid.UUID type in API response (#12036)
datadog_downtime: handle uuid.UUID type in API response (#12019)

* fix(datadog_downtime): convert uuid field to str for datadog-api-client>=2.28.0



* changelog: add fragment for PR 12019



---------


(cherry picked from commit 171feb5a2c)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-13 08:07:37 +02:00
patchback[bot]
b94ac3fa21
[PR #11996/2cb4a5d4 backport][stable-12] gitlab_user: update SSH keys when key material changes (#12038)
gitlab_user: update SSH keys when key material changes (#11996)

* gitlab_user: update SSH keys when key material changes

Compare SSH keys by key type and key material so comment-only differences remain idempotent while changed keys are replaced. Add unit and integration coverage for SSH key updates.

Fixes #6516

* gitlab_user: add SSH key update modes

Restore backward-compatible same-name SSH key handling by default and
add explicit update and deduplicate modes for controlled replacement
behavior.

Refs: #6516

* Apply suggestions from code review



---------


(cherry picked from commit 2cb4a5d4e7)

Co-authored-by: Fulvius <31437530+LCerebo@users.noreply.github.com>
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2026-05-13 08:07:21 +02:00
patchback[bot]
bb539f1d56
[PR #12013/abef8f2a backport][stable-12] xml: fix print_match not populating matches return value (#12021)
xml: fix `print_match` not populating `matches` return value (#12013)

* fix(xml): populate matches when print_match is set, fix returned doc



* test(xml): add integration tests for print_match



* changelog: add fragment for PR 12013



---------


(cherry picked from commit abef8f2aed)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-10 10:22:16 +02:00
patchback[bot]
b1d88ae3c1
[PR #12014/b8659f5c backport][stable-12] pam_limits: only create backup file when content actually changes (#12020)
pam_limits: only create backup file when content actually changes (#12014)

* fix(pam_limits): only create backup when file is actually changed

Fixes #12011



* changelog: add fragment for PR 12014



---------


(cherry picked from commit b8659f5c61)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-10 10:22:07 +02:00
patchback[bot]
b3669957d9
[PR #11917/798439f1 backport][stable-12] Fix gitlab_hook: add default value for releases_events parameter (#12017)
Fix gitlab_hook: add default value for releases_events parameter (#11917)

* Fix gitlab_hook: only pass releases_events to API when specified

The releases_events parameter now only gets passed to the GitLab API:
- On create: always passed (fixes 500 error when not specified)
- On update: only passed when explicitly specified by user

This avoids forcing the releases_events value during updates when not
intended by the user.

Fixes: https://github.com/ansible-collections/community.general/issues/11269

* Add changelog fragment for gitlab_hook releases_events fix

Fixes: https://github.com/ansible-collections/community.general/issues/11269

* Add PR link to changelog fragment

* Use .get() for safer dict access in releases_events handling

* Update plugins/modules/gitlab_hook.py

remove `.get()`



* Update plugins/modules/gitlab_hook.py

Remove the null check for `options[“releases_events”]`



---------



(cherry picked from commit 798439f1fe)

Co-authored-by: RealCharlesChia <161665317+RealCharlesChia@users.noreply.github.com>
Co-authored-by: Charles Chia <charleschia@email.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-09 22:05:55 +02:00
patchback[bot]
4ecae71dc9
[PR #11922/cdd0d252 backport][stable-12] jenkins_credential: improve example and description in documentation (#12016)
jenkins_credential: improve example and description in documentation (#11922)

* Fixes and improvements for better undestanding of the module

- Fixed token generation syntax to use `name` instead of `id`.
- Changed `token: {{ token }}` to `token: {{ token_result.token }}` to show accessing token from the registered variable, essentially making the entire Example section a playbook capable of full execution.
- Added notes in the Example section about the intended approach for storing and accessing tokens.
- Mentioned about not using `id` for token generation in the parameter's description.

* Applying FQCN for the `ansible.builtin.copy` module



* Shortened the notes about storing and accessing Jenkins token.

* Added line breaks to reduce width of the shortened notes

- Added line breaks to reduce the width of the shortened note from commit #5bc225b.
- Numbered and indented the notes for clear distinction.

* Changed token storage example to use INI instead of CSV format

---------


(cherry picked from commit cdd0d2521e)

Co-authored-by: Sonal Karmakar <234934724+sonalkarmakar@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-09 22:05:41 +02:00
patchback[bot]
5c8d0feb45
[PR #11997/240ff653 backport][stable-12] filetree lookup: document RETURN value state (#12010)
filetree lookup: document RETURN value `state` (#11997)

* Clarify 'state' parameter description in filetree.py

Updated the description for the 'state' parameter to clarify entry types and their meanings.

* Apply suggestion from felixfontein related to description



---------


(cherry picked from commit 240ff65311)

Co-authored-by: Santosh Mahale <santoshmahale7676@gmail.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-07 21:58:55 +02:00
patchback[bot]
7400d367a0
[PR #11994/a43006c7 backport][stable-12] seport: fix idempotency when port is covered by an existing range (#12004)
seport: fix idempotency when port is covered by an existing range (#11994)

* fix(seport): handle port overlap with existing ranges

Fixes idempotency when a requested port is already covered by an
existing range registered for the same setype/proto. Also improves
the error message when libsemanage raises FileNotFoundError on a
port overlap validation failure.

Fixes #10105



* chore(seport): add changelog fragment for #11994



---------


(cherry picked from commit a43006c7cb)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-07 07:21:38 +02:00
patchback[bot]
4df3fd064d
[PR #11990/645dd2d4 backport][stable-12] ldap_attrs: fix case-insensitive attribute lookup in state=exact (#12007)
ldap_attrs: fix case-insensitive attribute lookup in `state=exact` (#11990)

* fix(ldap_attrs): case-insensitive attribute lookup in _get_all_values_of

LDAP attribute names are case-insensitive (RFC 4512), but the previous
code used a case-sensitive dict lookup on the server's response. When
the server returns an attribute with different casing than requested,
the lookup returns [] causing state=exact to issue MOD_ADD instead of
MOD_REPLACE, which fails on single-valued attributes that already have
a value.

Fixes #1624



* feat(changelogs): add fragment for ldap_attrs fix #11990



---------


(cherry picked from commit 645dd2d448)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-07 07:21:31 +02:00
patchback[bot]
5467ddfe90
[PR #11992/2232f8bc backport][stable-12] saltstack connection plugin: add documentation (#12006)
saltstack connection plugin: add documentation (#11992)

docs(saltstack): add requirements, options and notes to connection plugin

Fixes #2463


(cherry picked from commit 2232f8bcc3)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-07 07:21:23 +02:00