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

4420 commits

Author SHA1 Message Date
Felix Fontein
97538e6ad1
CI: Replace devel RHEL 9.7 and 10.1 remotes with 9.8 and 10.2 (#12345)
Replace devel RHEL 9.7 and 10.1 remotes with 9.8 and 10.2.
2026-06-25 06:36:18 +02:00
Felix Fontein
2354b40d10
composer: restore compatibility with older composer versions (#12339)
* Restore compatibility.

* Adjust tests.
2026-06-25 05:33:40 +02:00
Felix Fontein
77e1e047b8
Mention AI policy in contributing guide (#12327)
* Mention AI policy in contributing guide.

* Improve formulation.

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

---------

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2026-06-24 06:17:45 +02:00
Shreyash
e1232fdcdf
filesystem: fix bcachefs get_fs_size() for new bcachefs-tools output format (#12291)
* filesystem: fix bcachefs get_fs_size() for new bcachefs-tools output format (#12259)

* filesystem: fix ruff formatting and enable bcachefs UUID tests

Fix ruff format violations (spaces around ** operators, single-quoted
regex string) and set bcachefs new_uuid to 'random' since it supports
UUID setting via -U/--uuid, fixing the set_fs_uuid_on_creation test
assertion failure on Arch Linux.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* filesystem: skip reset_fs_uuid test for bcachefs

bcachefs supports UUID at creation (-U/--uuid) but has no CHANGE_UUID
tool for resetting UUID on existing filesystems, so skip the
reset_fs_uuid test to avoid a get_bin_path(None) crash.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* filesystem: address review comments on bcachefs size parsing

* changelog: correct bcachefs-tools version to v1.38.4

The output format change (commit e635903b95) first appeared in
bcachefs-tools v1.38.4, not v1.37.0.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* changelog: add PR link to changelog fragment

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-23 20:38:08 +02:00
Sonal Karmakar
3f3149a25d
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

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

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

* Added pointer to notes section for more information

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

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
2026-06-23 20:37:15 +02:00
Jens Meißner
40bb8ea1ae
Improve documentation of idrac_redfish_info module (#12329)
Signed-off-by: Jens Meißner <meissner@b1-systems.de>
2026-06-23 20:36:10 +02:00
Felix Fontein
ccad1c8353
AZP: Generate CI matrix and run tests with antsibull-nox (#12315)
* AZP: Generate CI matrix and run tests with antsibull-nox.

* Update aliases test.
2026-06-23 20:06:57 +02:00
Felix Fontein
b4a23bfa1f
dpkg_divert tests: make them work when ansible-test is run with --display-traceback error (#12323)
Make dpkg_divert also work when ansible-test is run with --display-traceback error.
2026-06-22 18:24:07 +02:00
Felix Fontein
58ec169efe
CI docs workflow: use shared antsibull-nox workflow (#12319)
* Use reusable workflow.

* Also run workflow if the workflow itself is modified.
2026-06-22 10:19:43 +02:00
dependabot[bot]
91fbe5df54
build(deps): bump actions/checkout from 6 to 7 in the ci group (#12316)
Bumps the ci group with 1 update: [actions/checkout](https://github.com/actions/checkout).


Updates `actions/checkout` from 6 to 7
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: ci
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-22 09:06:28 +02:00
Felix Fontein
c63b56da76
CI: Run GHA integration tests with antsibull-nox (#12311)
Run GHA integration tests with antsibull-nox.
2026-06-22 06:15:10 +02:00
Felix Fontein
e837c5af27
CI: Add integration test sessions to antsibull-nox (#12307)
Add CI integration test sessions to antsibull-nox.
2026-06-21 23:11:08 +02:00
Felix Fontein
69dd1edc40
CI: Don't install community.internal_test_tools for sanity tests (#12303)
Don't install community.internal_test_tools for sanity tests.
2026-06-21 22:14:34 +02:00
Théophile Bastian
6c7eda4a7b
Passwordstore lookup: make directory an INI option (#12298)
* Passwordstore lookup: make `directory` an INI option

The passwordstore lookup plugin defaults to using the password store
tree under ~/.password-store. Being able to configure the directory used
for the whole Ansible project helps to use project-specific credentials
directory.

As `get_option` was already used for this option, this does not require
any change in the code itself.

* Add related changelog

* Update changelogs/fragments/12298-passwordstore-directory-as-ini-option.yml

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

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
2026-06-21 11:43:05 +02:00
alexander
b669a6e237
Change modules ownership account (#12207) 2026-06-20 14:18:36 +02:00
Felix Fontein
75d3a78d6d
Remove unittest.main() (#12295)
Remove unittest.main().
2026-06-20 08:26:40 +02:00
Felix Fontein
91ae1afdf6 The next feature release will be 13.2.0. 2026-06-16 18:08:53 +02:00
Tom Scholz
5a9b0ec81f
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

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

* style: format files once more

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

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

---------

Co-authored-by: Tom Scholz <>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-06-16 17:41:33 +02:00
Robert Sander
57739cbbd9
adds GFS2 support (#12285)
* adds GFS support

* changes PR id
2026-06-15 17:43:36 +02:00
Maksym Hazevych
07df65f293
Unhardcode dnf_config_manager DNF bin path (#12219)
Unhardcode the binary path to dnf in dnf_config_manager
2026-06-15 05:46:48 +02:00
Alexei Znamensky
b2a8fbe9c7
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
2026-06-15 05:45:52 +02:00
Felix Fontein
c760e9e0ff
filesystem tests: reorganize exceptions (#12277)
Reorganize exceptions for filesystem tests.
2026-06-14 21:39:27 +02:00
Alexei Znamensky
7dc2441fc8
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).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* 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.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* changelog: add fragment for PR 12234

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Add version_added.

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

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-06-14 21:05:09 +02:00
Felix Fontein
4775dfbcb2
filesystem: re-enable (and fix) most tests for Alpine (#12274)
Re-enable (and fix) most tests for Alpine.
2026-06-14 20:55:57 +02:00
Alexei Znamensky
33ae6c1018
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
2026-06-14 20:31:50 +02:00
Felix Fontein
112050ee7a
Antsibull-nox: split up unit tests by Python version (#12200)
* antsibull-nox: split up unit tests by Python version.

* Adjust syntax for Python-version specific unit tests.

* Update Python version in ansible-test example.
2026-06-14 17:26:01 +02:00
Shreyash
b34ef22c82
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
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* 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)

Co-authored-by: Cursor <cursoragent@cursor.com>

* test signing trace

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-14 12:06:39 +02:00
Alexei Znamensky
f4339d8c0d
java_cert: detect silent keytool failures by verifying import outcome (#12238)
* fix(java_cert): detect silent keytool failures by verifying import outcome

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

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

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* changelog: add fragment for PR 12238

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* dummy

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-14 08:18:31 +02:00
Felix Fontein
ebb813680e Exclude dnf_config_manager fixtures from trailing space check. 2026-06-14 07:30:49 +02:00
Maksym Hazevych
ff7f90fb4f
Fix dnf_config_manager incompatibility with DNF5 (#12206)
* Extract fixtures from dnf_config_manager tests

* Implement support for DNF5

* Format code
2026-06-14 07:04:06 +02:00
Felix Fontein
f1317d3039
Revert "filesystem module gfs2 support (#12218)" (#12262)
This reverts commit 9c0051e325.
2026-06-14 00:33:28 +02:00
Felix Fontein
ed8afeb16b
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.
2026-06-14 00:20:48 +02:00
Felix Fontein
763ae7b1e1
Fix wrong typing import (#12252)
Fix typing import.
2026-06-13 19:53:20 +02:00
Felix Fontein
5be28987b5
CI: Homebrew: trust 3rd-party taps (#12253)
Trust 3rd-party taps.
2026-06-13 19:51:48 +02:00
Alexei Znamensky
6c2301db33
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.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-13 17:11:22 +02:00
Alexei Znamensky
5004c9f70f
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

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

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

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

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

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-13 17:10:25 +02:00
Alexei Znamensky
b12c21f0ce
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.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* feat(changelog): add fragment for PR 12122

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

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

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* consolidate if branches

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-13 17:08:41 +02:00
Alexei Znamensky
3fa258f5a8
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
2026-06-13 17:07:40 +02:00
Alexei Znamensky
994b756026
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

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* 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.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* changelog: add fragment for PR 12151

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-13 17:06:45 +02:00
Alexei Znamensky
f677c2ab7d
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

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

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

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

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

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

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

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

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

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-13 17:01:50 +02:00
Robert Sander
9c0051e325
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

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

---------

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2026-06-13 16:33:49 +02:00
Felix Fontein
b738e42e24
keycloak_realm_users_info: add missing doc fragment (#12236)
For some reason, the keycloak module defaults group doc fragment was missing.
2026-06-13 10:03:55 +02:00
Santosh Mahale
4cc0fbd3af
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
2026-06-12 23:46:08 +12:00
Shreyash
4d72ec3299
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.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-12 23:07:13 +12:00
felix-grzelka
7b8ed586da
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

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* 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

---------

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2026-06-12 08:22:47 +02:00
felix-grzelka
27ed9cf919
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

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

* improve option wording

* fix tests

* rm line

* fix typo

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
2026-06-12 08:19:33 +02:00
Tiziano Müller
59e4e5f4fa
sudoers: add defaults attribute to allow specifying scoped defaults (#12186)
Assisted-by: multi-model agent

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2026-06-12 08:18:43 +02:00
Felix Fontein
53bde7f011
Add OpenSuSE Tumbleweed target to CI (#12222)
* Add OpenSuSE Tumbleweed target to CI.

* Adjust tests.
2026-06-11 23:08:37 +02:00
Felix Fontein
3774ca20d2
Revert "mark zypper tests (suse) as unsupported (#12154)" (#12164)
This reverts commit 2939d7fdd3.
2026-06-08 21:23:39 +02:00
Felix Fontein
f20f0d9cf9
iptables_state integration tests: improve skip conditions (#12209)
Improve skip conditions.
2026-06-08 21:23:26 +02:00