1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-17 13:23:12 +00:00
Commit graph

1713 commits

Author SHA1 Message Date
patchback[bot]
44ead7f83c
[PR #12181/5a9b0ec8 backport][stable-13] add new google_chat module (#12289)
add new `google_chat` module  (#12181)

* feat(module): add new `google_chat` module incl. tests

# Conflicts:
#	.github/BOTMETA.yml

* fix: address `check_mode` and `diff_mode` feedback

* refactor: switch from message_reply_option to create_new_thread

* refactor: split webhook_url into separate module parameters

* fix: remove unused pytest import

* refactor: remove unused `validate_certs`

* fix: add type hints



* style: format files once more

* fix: move types behind guard to prevent issues on python =< 3.8



---------

Co-authored-by: Tom Scholz <>

(cherry picked from commit 5a9b0ec81f)

Co-authored-by: Tom Scholz <tomscholz@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-06-16 17:51:32 +02:00
patchback[bot]
2f53f735b4
[PR #12285/57739cbb backport][stable-13] adds GFS2 support (#12287)
adds GFS2 support (#12285)

* adds GFS support

* changes PR id

(cherry picked from commit 57739cbbd9)

Co-authored-by: Robert Sander <r.sander@heinlein-support.de>
2026-06-15 18:02:43 +02:00
patchback[bot]
4ad4642bb8
[PR #12281/b2a8fbe9 backport][stable-13] integration tests: remove test setup for Ubuntu <16.04 (#12283)
filesystem: remove test setup for Ubuntu <16.04 (#12281)

* filesystem: remove test setup for Ubuntu <16.04

* more Ubuntu 16.04 refs

* and more old Ubuntu refs in tests

* and yet more truisms in tests conditionals

(cherry picked from commit b2a8fbe9c7)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2026-06-15 06:21:20 +02:00
patchback[bot]
c18d643dd2
[PR #12219/07df65f2 backport][stable-13] Unhardcode dnf_config_manager DNF bin path (#12284)
Unhardcode dnf_config_manager DNF bin path (#12219)

Unhardcode the binary path to dnf in dnf_config_manager

(cherry picked from commit 07df65f293)

Co-authored-by: Maksym Hazevych <mhazevych@mailbox.org>
2026-06-15 05:59:18 +02:00
patchback[bot]
f1673a3891
[PR #12277/c760e9e0 backport][stable-13] filesystem tests: reorganize exceptions (#12280)
filesystem tests: reorganize exceptions (#12277)

Reorganize exceptions for filesystem tests.

(cherry picked from commit c760e9e0ff)

Co-authored-by: Felix Fontein <felix@fontein.de>
2026-06-14 21:47:55 +02:00
patchback[bot]
42325505b4
[PR #12234/7dc2441f backport][stable-13] xbps: include stdout and stderr in module output (#12278)
xbps: include `stdout` and `stderr` in module output (#12234)

* fix(xbps): add stdout/stderr to module output and fix error message typo

Include stdout and stderr from the last executed command in all
exit_json and fail_json calls so users can see the actual xbps output
when debugging failures (addresses issue #2478).



* test(xbps): add basic unit tests using uthelper

Cover install (new, already present, failure) and remove (installed,
absent) scenarios. Verifies stdout/stderr are propagated in output.



* changelog: add fragment for PR 12234



* Add version_added.



---------



(cherry picked from commit 7dc2441fc8)

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-06-14 21:40:06 +02:00
patchback[bot]
4e09786b01
[PR #12274/4775dfbc backport][stable-13] filesystem: re-enable (and fix) most tests for Alpine (#12276)
filesystem: re-enable (and fix) most tests for Alpine (#12274)

Re-enable (and fix) most tests for Alpine.

(cherry picked from commit 4775dfbcb2)

Co-authored-by: Felix Fontein <felix@fontein.de>
2026-06-14 21:39:00 +02:00
patchback[bot]
3cba1cd735
[PR #12152/b34ef22c backport][stable-13] add go module to manage Go packages via go install (#12269)
add go module to manage Go packages via go install (#12152)

* add golang_package module to manage Go packages via go install

Adds a new module to install, update, and remove Go packages
using go install. Supports inline version pinning in package
names (e.g. pkg/tool/cmd with version suffix).

Assisted-by: Claude Opus 4.6


* fix copyright year and BOTMETA alphabetical order

* fix environment keyword docs, add integration test aliases

- Use C(environment) instead of O(ignore:environment) for task keyword
- Add tests/integration/targets/golang_package/aliases for CI
- Fix setup.yml: handle Alpine/ArchLinux/FreeBSD package names, skip Go < 1.16
- Pin tests to x/tools v0.24.1 (only version compatible with Go 1.16-1.25)



* test signing trace



---------



(cherry picked from commit b34ef22c82)

Co-authored-by: Shreyash <shrbhosa@redhat.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-14 12:33:01 +02:00
patchback[bot]
9e690837bd
[PR #12238/f4339d8c backport][stable-13] java_cert: detect silent keytool failures by verifying import outcome (#12268)
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:42 +02:00
patchback[bot]
d0bdd8a357
[PR #12206/ff7f90fb backport][stable-13] Fix dnf_config_manager incompatibility with DNF5 (#12266)
* 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:10 +02:00
patchback[bot]
5bcc247768
[PR #12262/f1317d30 backport][stable-13] Revert "filesystem module gfs2 support (#12218)" (#12264)
Revert "filesystem module gfs2 support (#12218)" (#12262)

This reverts commit 9c0051e325.

(cherry picked from commit f1317d3039)

Co-authored-by: Felix Fontein <felix@fontein.de>
2026-06-14 00:41:38 +02:00
patchback[bot]
c921444aeb
[PR #12258/ed8afeb1 backport][stable-13] Re-enable most filesystem tests (#12260)
Re-enable most filesystem tests (#12258)

* Re-enable most filesystem tests.

* Fix conditionals (ansible-core 2.19).

* Fedora also needs gfs2-utils.

* fatresize seems to be broken on Ubuntu.

* Install util-linux-extra on Debian/Ubuntu.

* Fix conditionals.

* Temporarily disable bcachefs tests on Arch (and thus on all platforms).

* [TEMP] Generally disable gfs2 tests.

(cherry picked from commit ed8afeb16b)

Co-authored-by: Felix Fontein <felix@fontein.de>
2026-06-14 00:30:25 +02:00
patchback[bot]
694f2373a4
[PR #12252/763ae7b1 backport][stable-13] Fix wrong typing import (#12257)
Fix wrong typing import (#12252)

Fix typing import.

(cherry picked from commit 763ae7b1e1)

Co-authored-by: Felix Fontein <felix@fontein.de>
2026-06-13 21:29:31 +02:00
patchback[bot]
4d2ac82423
[PR #12253/5be28987 backport][stable-13] CI: Homebrew: trust 3rd-party taps (#12256)
CI: Homebrew: trust 3rd-party taps (#12253)

Trust 3rd-party taps.

(cherry picked from commit 5be28987b5)

Co-authored-by: Felix Fontein <felix@fontein.de>
2026-06-13 21:29:17 +02:00
patchback[bot]
5bb9c6c805
[PR #12067/f677c2ab backport][stable-13] counter_enabled callback: display output for looped tasks (#12241)
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:53 +02:00
patchback[bot]
c14620fcf6
[PR #12151/994b7560 backport][stable-13] java_cert: fix PKCS12 password not passed to keytool -list (#12243)
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:42 +02:00
patchback[bot]
3bc92d03c4
[PR #12148/5004c9f7 backport][stable-13] xml: preserve DOCTYPE declaration when writing XML files (#12249)
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:15 +02:00
patchback[bot]
58d8bbf164
[PR #12218/9c0051e3 backport][stable-13] filesystem module gfs2 support (#12239)
filesystem module gfs2 support (#12218)

* adds GFS2 to filesystem module

* adds changelog fragment

* adds PR URL

* adds blank line

* removes RedHat, package not available

* renames file and removes license remark

* adds remark about adding gfs2 to 13.1.0

* corrects typo

* Update changelogs/fragments/12218-filesystem-gfs2.yaml



---------


(cherry picked from commit 9c0051e325)

Co-authored-by: Robert Sander <github@gurubert.de>
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2026-06-13 16:43:29 +02:00
patchback[bot]
cdab3ee401
[PR #12215/4d72ec32 backport][stable-13] xenserver_guest_info: use fallback chain for VDI format detection (#12230)
xenserver_guest_info: use fallback chain for VDI format detection (#12215)

* xenserver_guest_info: use fallback chain for VDI format detection

* changelog: add PR URL to
  changelog fragment

* test: set mismatched vdi_type in vm-3 fixture to test fallback chain precedence

Set vdi_type to "vhd" while image-format remains "qcow2" so the unit
test verifies that image-format takes precedence in the fallback chain.



---------


(cherry picked from commit 4d72ec3299)

Co-authored-by: Shreyash <shrbhosa@redhat.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-12 23:46:27 +02:00
patchback[bot]
f5acbe2fef
[PR #12186/59e4e5f4 backport][stable-13] sudoers: add defaults attribute to allow specifying scoped defaults (#12227)
sudoers: add defaults attribute to allow specifying scoped defaults (#12186)

Assisted-by: multi-model agent


(cherry picked from commit 59e4e5f4fa)

Co-authored-by: Tiziano Müller <tiziano.mueller@hpe.com>
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2026-06-12 23:46:12 +02:00
patchback[bot]
f5dbd0b1b7
[PR #12103/27ed9cf9 backport][stable-13] keycloak_clientscope: idempotency for clientscope protocolmappers (#12228)
keycloak_clientscope: idempotency for clientscope protocolmappers (#12103)

* delete_clientscope_protocolmapper

* add protocol_mappers_behavior

* add tests

* fix docstring

* use deepcopy to protect nested dicts

* fix test

* nox -Re formatters

* fix E713

* update version added

* fix typo

* use preferred lookup method

* Apply suggestions from code review



* improve option wording

* fix tests

* rm line

* fix typo

---------


(cherry picked from commit 27ed9cf919)

Co-authored-by: felix-grzelka <felix.grzelka@dataport.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-06-12 23:46:04 +02:00
patchback[bot]
b9e869d67e
[PR #12105/7b8ed586 backport][stable-13] new module: keycloak_realm_users_info (#12229)
new module: keycloak_realm_users_info (#12105)

* init keycloak user info

* fix docs

* rename

* nox -Re formatters

* botmeta

* update runtime.yml

* fix line too long

* fix stupid

* mv keycloak_realm_users.py keycloak_realm_users_info.py

* add integration test

* fix integrationtest

* fix version_added



* fix eof

* use other file as template

* use keycloak_client_rolescope as basis

* refactor functions

* fix extends_documentation_fragment

* clean some things up

* improve diff?

* docstring

* revert to old logic

---------


(cherry picked from commit 7b8ed586da)

Co-authored-by: felix-grzelka <felix.grzelka@dataport.de>
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2026-06-12 23:45:55 +02:00
patchback[bot]
30573b10ff
[PR #12205/4cc0fbd3 backport][stable-13] Add integration tests for filetree lookup exclude handling (#12231)
Add integration tests for filetree lookup exclude handling (#12205)

* Add unit tests for filetree lookup exclude handling

* Fix import order in filetree lookup unit tests

* Replace filetree unit tests with integration tests

* Fix lookup_filetree integration test setup directories

* Fix lookup_filetree integration test lookup term path

* Use remote_tmp_dir for lookup_filetree integration test files

(cherry picked from commit 4cc0fbd3af)

Co-authored-by: Santosh Mahale <santoshmahale7676@gmail.com>
2026-06-12 23:45:44 +02:00
patchback[bot]
0d0188b0ab
[PR #12222/53bde7f0 backport][stable-13] Add OpenSuSE Tumbleweed target to CI (#12225)
Add OpenSuSE Tumbleweed target to CI (#12222)

* Add OpenSuSE Tumbleweed target to CI.

* Adjust tests.

(cherry picked from commit 53bde7f011)

Co-authored-by: Felix Fontein <felix@fontein.de>
2026-06-12 07:39:39 +02:00
patchback[bot]
c2ad8290c7
[PR #12209/f20f0d9c backport][stable-13] iptables_state integration tests: improve skip conditions (#12212)
iptables_state integration tests: improve skip conditions (#12209)

Improve skip conditions.

(cherry picked from commit f20f0d9cf9)

Co-authored-by: Felix Fontein <felix@fontein.de>
2026-06-09 17:48:36 +02:00
patchback[bot]
e7f3c2cbfe
[PR #12201/877f20f2 backport][stable-13] replace lingering ansible_xxx with ansible_facts.xxx (#12202)
replace lingering ansible_xxx with ansible_facts.xxx (#12201)

(cherry picked from commit 877f20f278)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2026-06-06 11:52:58 +02:00
patchback[bot]
4422066f17
[PR #12195/10d77d93 backport][stable-13] remove references to FreeBSD versions that are no longer used in CI (#12198)
remove references to FreeBSD versions that are no longer used in CI (#12195)

(cherry picked from commit 10d77d934b)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2026-06-05 13:47:42 +02:00
patchback[bot]
06f2bf2aee
[PR #12163/f9d4f0ad backport][stable-13] Fix incus Windows modules with ansible-core 2.21 (#12179)
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:49 +02:00
patchback[bot]
00484a8c30
[PR #12162/cdd9c1dd backport][stable-13] test(integration): explicitly add executable to iso_extract on Fedora (#12166)
test(integration): explicitly add executable to iso_extract on Fedora (#12162)

This provides a (temporary) workaround for https://bugzilla.redhat.com/show_bug.cgi?id=2373874:
On Fedora 43+ 7zip is unable to find the 7z.so module when it is not in the
same path as the 7z binary or in /usr/bin/

(cherry picked from commit cdd9c1ddde)

Co-authored-by: spike77453 <spike77453@users.noreply.github.com>
2026-06-01 06:33:57 +02:00
patchback[bot]
544b3ce678
[PR #12123/49ca175f backport][stable-13] htpasswd: fix hash_scheme aliases and Apache-compatible bcrypt (#12156)
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:57 +02:00
patchback[bot]
709e596700
[PR #12121/6e6199ae backport][stable-13] parted: ignore MBR partition type codes in flags on SUSE systems (#12147)
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:40 +02:00
patchback[bot]
9821ff20c4
[PR #12137/5d62edc6 backport][stable-13] pamd: handle non-PAM lines in authselect profile files (#12145)
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:03 +02:00
patchback[bot]
3b5eb565fb
[PR #12119/9208cbfd backport][stable-13] xenserver_guest_info: add VDI uuid and vdi_type to disk info (#12141)
xenserver_guest_info: add VDI uuid and vdi_type to disk info (#12119)

* xenserver_guest_info: add VDI uuid and vdi_type to disk info

  Add uuid and vdi_type (VHD/QCOW2) fields to the disk information
  returned by xenserver_guest_info module.

  Fixes #11998

* changelog: add PR URL to changelog fragment

* xenserver_guest_info: add uuid and vdi_type to RETURN example output

(cherry picked from commit 9208cbfd43)

Co-authored-by: Shreyash <shrbhosa@redhat.com>
2026-05-30 20:29:53 +02:00
patchback[bot]
7774bcfcfd
[PR #12138/d749cf7c backport][stable-13] pkgng: remove constraints for FreeBSD 12.x from pkgng test (#12139)
pkgng: remove constraints for FreeBSD 12.x from pkgng test (#12138)

(cherry picked from commit d749cf7c85)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2026-05-30 16:19:59 +02:00
patchback[bot]
531da7d617
[PR #12096/e41e76fd backport][stable-13] new module: gitlab_project_approvals configures GitLab project approval rules (#12133)
new module: gitlab_project_approvals configures GitLab project approval rules (#12096)

* Add gitlab_project_approvals module

* Update BOTMETA info

* Add lisence info to tests

(cherry picked from commit e41e76fdf5)

Co-authored-by: ONODERA Masaru <46081939+masa-orca@users.noreply.github.com>
2026-05-30 15:12:25 +02:00
patchback[bot]
f1c89afb1f
[PR #12084/8468fea3 backport][stable-13] composer: config file hash to evaluate whether a change occurred (#12132)
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 15:12:16 +02:00
patchback[bot]
f7647b2131
[PR #11752/d4031f36 backport][stable-13] kopia: Add kopia_repository module (#12127)
kopia: Add kopia_repository module (#11752)

* Add kopia module util

* fix pipeline suggestions

* add kopia repository module

* apply code review changes

* remove kopia_runner instance unit test

* update botmeta with kopia

* refactor docs and redundant state

* add kopia_info module and fix kopia_repository check mode support

- Add kopia_info module for read-only repository information gathering
  (kopia repository status, kopia repository throttle get) following
  the pacemaker_info pattern with ModuleHelper and info_module fragment
- Add _fmt_throttle to _kopia.py and register throttle format in
  kopia_runner; remove throttle_operation get option from
  kopia_repository per Ansible best practices (info ops belong in
  _info modules)
- Add throttle suboption dict to kopia_repository with all seven
  kopia repository throttle set flags
- Fix check_mode: support from full to actually full by implementing
  _predict_value() in kopia_repository; previously check_mode_skip
  caused changed to always be false in check mode
- Add check mode test cases to test_kopia_repository.yaml covering
  created and disconnected states for both connected and disconnected
  initial conditions
- Add BOTMETA.yml entry and full test fixture for kopia_info

* apply code review suggestions

(cherry picked from commit d4031f36e4)

Co-authored-by: munchtoast <45038532+munchtoast@users.noreply.github.com>
2026-05-30 15:12:10 +02:00
patchback[bot]
6d7e44f14b
[PR #11841/20a07fc9 backport][stable-13] new module: keycloak_clientscope_rolemappings (#12130)
new module: keycloak_clientscope_rolemappings (#11841)

* init

* stuff

* this should work

* helper functions

* fix docstrings

* s/client scope/clientscope/

* fix docstrings

* add type hints

* fix old function

* nox -Re formatters

* fix clientscope_id

* fix blank line contains whitespace

* add BOTMETA info

* set version_added

* Apply suggestions from code review to prepare for 13.0.0



* fix yaml indent in doc string

* add keycloak_clientscope_rolemappings to keycloak action group

* original author credit

* Apply suggestions from code review



* init tests

* Update plugins/modules/keycloak_clientscope_rolemappings.py



* fix integration tests

* use [] instead of .get()

* fix typo

* Update plugins/modules/keycloak_clientscope_rolemappings.py



* update fedora version

* fix --docker fedora

* revert

* Apply suggestions from code review



* remove unnecessary docstring

* change something

* change it back

* Apply suggestions from code review



* Update plugins/modules/keycloak_clientscope_rolemappings.py



---------



(cherry picked from commit 20a07fc973)

Co-authored-by: felix-grzelka <felix.grzelka@dataport.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2026-05-30 15:11:54 +02:00
patchback[bot]
bced112f9a
[PR #12032/580e8ad3 backport][stable-13] slack: support file upload (#12126)
slack: support file upload (#12032)

* slack: add support for file uploads and threading

* slack: add support for file uploads and threading

* docs: rename fragment to match PR #12032

* Fix validate-modules issues and update documentation for files support

* Fix tests

* Fix tests

* Fix tests

* Fix tests

* chore: fix nox sanity issues

* style: add author copyright

* style: fix examples

* build: trigger CI due to infrastructure timeout

* Update plugins/modules/slack.py



* doc: address reviewer feedback on changelog and token placeholder

* doc: address reviewer feedback on changelog and token placeholder

* fix: address maintainer feedback

* fix: pipeline status, rm continue

* fix: fix unit tests

* fix: linter fix

* fix: fix comments

* Update plugins/modules/slack.py



* Update plugins/modules/slack.py



* docs: remove outdated comment about failing logic

* Update plugins/modules/slack.py



* Update plugins/modules/slack.py



* fix: handle missing files via fail_on_file_error

* Apply suggestions from code review



* Apply suggestions from code review



* fix: adjust options syntax and formatting

---------




(cherry picked from commit 580e8ad3f9)

Co-authored-by: Maxim Bakurevych <43715761+BakurD@users.noreply.github.com>
Co-authored-by: Максим Бакуревич <maksimbakurevic@MacBook-Air-Maksim.local>
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-30 15:11:47 +02:00
patchback[bot]
06feb91f2b
[PR #12081/8faf8c38 backport][stable-13] Add from_toml filter (#12081) (#12125)
Add `from_toml` filter (#12081) (#12081)

* Add `from_toml` filter (#12081)

* Use tasks/main.yml instead of runme.sh for integration tests

* Renamed filter back to to_toml.py, moved from_toml filter to its own file making use of python's native tomllib

* Remove task to install tomlkit library as it's no longer required for the from_toml filter

* Replace deprecated t.Mapping with collections.abc.Mapping (https://docs.python.org/3/library/typing.html#typing.Mapping)

* Type is not determined when function is called. Let isinstance check ensure value has string type.

(cherry picked from commit 8faf8c3838)

Co-authored-by: spike77453 <spike77453@users.noreply.github.com>
2026-05-30 15:11:41 +02:00
patchback[bot]
ab08561421
[PR #11749/2d89fb1c backport][stable-13] keycloak_user: fix email_verified is not idempotent (#12129)
keycloak_user: fix email_verified is not idempotent (#11749)

* fix: email_verified is not idempotent

* autopep8

* fix import-before-documentation

* address reviewer comments

* rever formatting

* revert more stuff

* fix whitespace

* clean up

* fix diff mode

* nox -Re formatters

* Update plugins/modules/keycloak_user.py



* add deprecation warning

* keycloak_default_behavior

* Apply suggestions from code review



* Update plugins/modules/keycloak_user.py



* fix is_struct_included

* ignore keycloak_default_behavior and fix is_struct_included

* fix diff for groups

* fix changed flag in check mode

* nox -Re formatters

* fix group diff

* nox -Re formatters

* fix comment logic

* add todos

* fix user_profile_metadata in diff

* refactor diff

* rm default for required_actions

* update required_actions docstring

* fix before_user group handling

* nox -Re formatters

* fix yaml indent in doc strings

* use f-strings

* fix tests

* fix test_add_new_user

* rename keycloak_default_behavior to email_verified_behavior

* fix stupid

* nox -Re formatters

* remove typing from docstring

* remove user_profile_metadata parameter

* Update plugins/module_utils/_keycloak.py



* improve docs

* precompute ignored_arguments list

* nox -Re formatters

* simplify diff logic

* add more tests

* nox -Re formatters

* fix docs

* clean up more

* fix endstate when user does not change

* finalize integrationtest

* fail if group is not found

* fix tests

* nox -Re formatters

* fix docstring

* add integration tests for required_actions

* fix diff logic and fail early

* nox -Re formatters

* fix boolean logic error

* Apply suggestions from code review



* Apply suggestions from code review



---------



(cherry picked from commit 2d89fb1c15)

Co-authored-by: felix-grzelka <felix.grzelka@dataport.de>
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-30 15:11:33 +02:00
patchback[bot]
1c4c177f25
[PR #12128/a794ccf1 backport][stable-13] zpool: reduce disk usage in integration tests by using sparse files (#12136)
zpool: reduce disk usage in integration tests by using sparse files (#12128)

* zpool: use sparse files in integration tests to reduce diskspace usage

* changelog: add PR link to zpool disk space fragment

* remove changelog fragment for test-only change

(cherry picked from commit a794ccf127)

Co-authored-by: Shreyashxredhat <shrbhosa@redhat.com>
2026-05-30 15:11:24 +02:00
patchback[bot]
f074ca9b05
[PR #12097/850ef03f backport][stable-13] snap: enforce hold when installing at a specific revision (#12101)
snap: enforce hold when installing at a specific revision (#12097)

* snap: enforce hold when installing at a specific revision

When `revision` is specified, run `snap refresh --hold` after install/refresh
to actually pin the snap and prevent automatic updates from overriding it.
Detects hold-mismatch idempotently via the Notes column of `snap list`.

Fixes #12088



* feat(changelog): add fragment for snap hold fix (#12097)



* test(snap): remove incorrect manual-refresh assertion from hold test

snap refresh --hold only blocks the snapd auto-refresh daemon; a manual
snap refresh bypasses the hold. Remove the block that ran snap refresh
manually and asserted the revision was unchanged.



* snap: add bare-refresh hold test and docs warning for manual refresh bypass



---------


(cherry picked from commit 850ef03fe7)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-25 15:58:44 +02:00
patchback[bot]
1350743a54
[PR #12095/b1c7700a backport][stable-13] multiple: mark integration tests that run pip install as destructive (#12100)
multiple: mark integration tests that run `pip install` as destructive (#12095)

test(integration): mark pip-installing tests as destructive


(cherry picked from commit b1c7700a1b)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-25 15:34:31 +02:00
patchback[bot]
c975b1bdd5
[PR #12093/1bf5e6e6 backport][stable-13] iptables_state: clean up code (#12098)
iptables_state: clean up code (#12093)

* Get rid of unnecessary dummy variables.

* wrap_async isn't defined if the if condition isn't true.

* _back is in module_args if and only if both starter_cmd and confirm_cmd are not None.

* Add changelog.

(cherry picked from commit 1bf5e6e69a)

Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-25 15:34:01 +02:00
patchback[bot]
20c46a835c
[PR #12085/fdace385 backport][stable-13] nmcli: fix check/diff for bond arp_interval and arp_ip_target (#11588) (#12092)
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:19 +02:00
patchback[bot]
24d254b022
[PR #12078/e6ca0df5 backport][stable-13] Fix typing (#12080)
Fix typing (#12078)

Fix typing.

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

(cherry picked from commit e6ca0df592)

Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-19 08:25:32 +02:00
spike77453
f68e65a373
test(integration): add to_ini filter plugin test for no_extra_spaces parameter (#12077) 2026-05-18 19:38:04 +02:00
Felix Fontein
ea02e6a5a9
onepassword* lookups: drop support for op v1 (#12061)
Drop support for op v1.
2026-05-18 05:12:14 +02:00
Felix Fontein
528c2879d5
Mark nomad tests as unstable (#12072)
Mark nomad tests as unstable.
2026-05-17 11:43:36 +02:00