1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-22 13:19:13 +00:00
Commit graph

3588 commits

Author SHA1 Message Date
Mariam Ahhttouche
571a5b5161 uv_python module: improve integration tests 2026-02-16 16:13:33 +01:00
Mariam Ahhttouche
92f7059686 uv_python module: improve methods' return values and add docstrings 2026-02-16 16:12:50 +01:00
Mariam Ahhttouche
5c842b805b uv_python module: handle case when provided python version does not exist in latest state 2026-02-16 14:33:33 +01:00
Mariam Ahhttouche
cfecbc6d7b uv_python module: refactor code 2026-02-16 14:31:58 +01:00
Mariam Ahhttouche
ce10eba574 uv_python module: add integration test for case when specified version does not exist 2026-02-16 14:28:57 +01:00
Mariam Ahhttouche
9bbf6efe28 uv_python module: improve exception handling 2026-02-16 11:42:49 +01:00
Mariam Ahhttouche
7610b82e00 uv_python module: add integration test for when uv executable does not exist 2026-02-16 11:38:07 +01:00
Mariam Ahhttouche
ee79011e9c uv_python module: refactor code 2026-02-16 11:29:26 +01:00
Mariam Ahhttouche
be9bad065a uv_python module: improve module return values 2026-02-16 11:20:01 +01:00
Mariam Ahhttouche
c40054f3f6 uv_python module: improve integration tests 2026-02-16 11:17:23 +01:00
Mariam Ahhttouche
d37009ae7b uv_python module: update latest state handling to sort versions without relying on uv behavior 2026-02-16 10:04:38 +01:00
Mariam Ahhttouche
473f758ec1 uv_python module: improve absent state check mode and add corresponding integration test 2026-02-13 17:10:46 +01:00
Mariam Ahhttouche
b897756776 uv_python module: make latest state more deterministic by using install with explicite version 2026-02-13 17:04:24 +01:00
Mariam Ahhttouche
396fc6cbb2 uv_python module: improve latest state check mode to show version that will be installed 2026-02-13 16:31:13 +01:00
Mariam Ahhttouche
87ad81992d uv_python module: add integration tests for check mode 2026-02-13 15:49:15 +01:00
Mariam Ahhttouche
0f586328bc uv_python module: add integration tests for latest state 2026-02-13 15:42:09 +01:00
Mariam Ahhttouche
ac140457f1 uv_python module: add support for latest state 2026-02-13 15:41:05 +01:00
Mariam Ahhttouche
e2f27a3a36 uv_python module: add _list_python and _get_latest_patch_release methods 2026-02-13 12:26:18 +01:00
Mariam Ahhttouche
71d7538bdf uv_python module: add integration tests for version format 2026-02-12 17:27:25 +01:00
Mariam Ahhttouche
21c6d762cc uv_python module: restrict accepted version formats to X.Y and X.Y.Z 2026-02-12 17:26:57 +01:00
Mariam Ahhttouche
21646442ce uv_python module: refactor code 2026-02-12 16:31:37 +01:00
Mariam Ahhttouche
458cd11c42 uv_python module: add integration tests 2026-02-12 10:47:21 +01:00
Mariam Ahhttouche
3117cba3a9 uv_python module: handle absent state 2026-02-12 10:46:57 +01:00
Mariam Ahhttouche
39b9661d59 uv_python module: refactor code 2026-02-12 09:09:28 +01:00
Mariam Ahhttouche
731d7b571f uv_python module: add integration tests 2026-02-11 17:20:48 +01:00
Mariam Ahhttouche
e1b75be738 Add minimal uv_python module 2026-02-11 17:20:30 +01:00
Felix Fontein
e853a6f39b
redis_info: adjust tests for Arch Linux (#10129) 2025-05-14 07:23:59 +02:00
Vladimir Botka
de60ea1da4
Fix #10120. Split key=value where value may comprise = (#10121)
* Fix #10120. Split key=value where value may comprise =

* Added fragment.

* Update plugins/modules/sysrc.py

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

* Update changelogs/fragments/10121-sysrc-fix-split-first-separator.yml

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

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
2025-05-12 21:51:00 +02:00
Felix Fontein
86507e8aca
lxc: fix unit tests (#10115)
Don't compare strings passed through set_option()/get_option() with 'is'.
2025-05-10 13:22:54 +02:00
Sibe Bleuzé
43eb342b18
ini_file: fix unmatched whitespace before comment (#10102)
* ini_file: fix unmatched whitespace before comment

* Add changelog fragment

* Update changelog fragment: bugfixes to minor_changes

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

---------

Co-authored-by: sibebleuze <>
Co-authored-by: Felix Fontein <felix@fontein.de>
2025-05-10 13:21:36 +02:00
Felix Fontein
fcd2d8b7b7
Fix deprecation test (#10111)
Fix deprecation test.
2025-05-06 23:02:24 +02:00
Felix Fontein
94acd18052
antsibull-nox: use community.crypto 2.x.y for ansible-core < 2.17 (#10106)
Use community.crypto 2.x.y for ansible-core < 2.17.
2025-05-06 21:44:18 +02:00
Alexei Znamensky
299172d27b
fixed hidden warnings from extra tests - batch 2 (#10027)
* fixed hidden warnings from extra tests - batch 2

* remove multiple yaml doc markers from EXAMPLE blocks

* Apply suggestions from code review

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

* Apply suggestions from code review

* Apply suggestions from code review

* dig: adjust markup for return suboptions

* Update plugins/lookup/dig.py

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
2025-05-04 14:05:32 +02:00
Alexei Znamensky
a042721c82
pipx/pipx_info: fix scheduled tests (#10096) 2025-05-03 12:31:04 +12:00
Orion Poplawski
6a40d459b5
Add connection_timeout option to cobbler inventory (#10063)
Signed-off-by: Orion Poplawski <orion@nwra.com>
2025-05-02 06:17:23 +02:00
Timur Gadiev
7e4d6aa541
Add new filter plugin: 'to_prettytable' (#9954)
* Add new action plugin 'prettytable'

* Add integration tests for 'prettytable' plugin

* Added BOTMETA details

* Add COPYRIGHT details

* Add 'to_prettytable' filter plugin and tests

* fix: 🐛 Fix add_rows method

* Add changelog fragment

* Remove changelog fragments

* Apply code review suggestions

* Correct BOTMETA and lint

* refactor: 🔥 Remove unnecessary code parts

* fix: Fix contact details

* Correct kwargs.pop and column_alignments description

* Remove 'trim' filter from conditionals in tests

* Add additional validations and tests

* fix: Apply corrections after review

* refactor: Optimize code and make some refactoring

* fix: Add some minor corrections

* fix: add column_alignments validation and tests

* Update version_added to "10.7.0"

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

* refactor: Use TypeValidationError class for type checking

* refactor: Apply suggestions

* fix: documentation indent

* Apply suggestion

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

* style: Adjust indentation

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

* style: Correction of examples

* fix: Commit suggestion

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

* fix: Commit suggestion

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

* feat: Add correct parameters validation for empty data

---------

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2025-05-02 06:16:45 +02:00
Felix Fontein
f3ea40db3d
keycloak_user_rolemapping: fix diff mode (#10076) 2025-05-02 11:52:06 +12:00
Felix Fontein
60f1169d42
CI: Use community.crypto 2.x.y for ansible-core 2.16 and before (#10086)
* Use community.crypto 2.x.y for ansible-core 2.16 and before.

* Also use stable-2 for ubuntu2004 tests.
2025-05-01 07:57:31 +02:00
Felix Fontein
d89a0bbc0e
nmcli: fix misspelled option in example (#10075)
Fix misspelled option.
2025-04-30 22:16:51 +02:00
Abhijeet Kasurde
1936fe5181
crypttab: removes jijna delimiters from example using when (#10079)
The current example includes extra jinja delimiters which
result in double-interpretation of the statement.

Fixes: #10078

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2025-04-29 22:18:15 +02:00
Alexei Znamensky
3249a041c0
Improve MH doc (#10071) 2025-04-27 12:58:08 +12:00
Orion Poplawski
7524e74bb7
cobbler.inventory: Allow collecting fully rendered facts (#9975)
Add facts_level option to cobbler inventory plugin, cleanpu

Initialize connection in parse()
Handle rendered system data in _get_systems() so it can be cached

Signed-off-by: Orion Poplawski <orion@nwra.com>
Co-authored-by: Tyler Phillippe <tylerphillippe@tutamail.com>
2025-04-26 12:34:11 +02:00
Marcos Alano
373334d668
Add xdg_mime module (#10007)
* Add version of xdg_mime module

* Fix xdg_mime_get since the command is different

* Add query parameter

* Fix order of parameters

* Add myself to BOTMETA

* Add unit tests

* Fix the way we deal when there is no handler set

* Improve documentation

* Remove unused import

* Fix documentation

* Strip xdg-mime from version string

* Fix information about version

* Add error message sample

* Add test to invalid handler

* Add support to multiple mime-types

* Change the output parameter from handlers to handler

* Change tests related to multiple mime-type support

* Small fixes

* Stop using constant to enable changed state

* Add before_handlers and after_handlers

* Change tests to use before and after structures

* Add a stronger message about using a non-installed handler

* Manage some edge cases

* Change error message to match the new value

* Add some fixes

* Change some tests

* Update plugins/modules/xdg_mime.py

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

* Remove a blank line

* Remove single quote

* Add xdg-mime to the version in the mocks

* Remove after_handlers and make code simpler

* Update tests to work without after_handlers

* Remove diff_params and clean output_params

* Make mime_type plural since it supports multiple items

* Move the handler check to module init

* Use anchors in the test to make yaml simpler

* Update plugins/modules/xdg_mime.py

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

* Update plugins/modules/xdg_mime.py

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

* Update plugins/modules/xdg_mime.py

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

* Update plugins/modules/xdg_mime.py

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

* Update plugins/modules/xdg_mime.py

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

* Update plugins/modules/xdg_mime.py

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

* Update plugins/modules/xdg_mime.py

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

* Update plugins/modules/xdg_mime.py

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

* Update plugins/modules/xdg_mime.py

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

* Update plugins/modules/xdg_mime.py

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

* Add blank line to separe examples

* Update plugins/modules/xdg_mime.py

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

* Add a small homage to my late grandma

* Update plugins/modules/xdg_mime.py

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

* Fix pep8 problem with the homage

* Remove trailing whitespace

* Update plugins/modules/xdg_mime.py

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

---------

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2025-04-26 12:34:03 +02:00
Felix Fontein
8fa357e74b Fix info on blanket license statement for changelog fragments. 2025-04-24 22:49:26 +02:00
Alexei Znamensky
a3b8eed0c4
fixed hidden warnings from extra tests - batch 1 (#10025) 2025-04-23 21:49:20 +02:00
Felix Fontein
a720e99482
Mark supervisorctl tests as unstable (#10057)
Mark supervisorctl tests as unstable.
2025-04-22 21:59:17 +02:00
Felix Fontein
4a2920b0fd
Remove FreeBSD 14.0 from CI (#10051)
Remove FreeBSD 14.0 from CI.

In ansible-core it has been replaced with 14.1, but we're already testing against that.
Ref: 3546111f2d
2025-04-22 07:36:57 +02:00
Christian Schlichtherle
6e384a1c6a
Add support for addressing subgroups by paths to the keycloak_user module (#9898)
* Add support for addressing subgroups by paths to the keycloak_user module (issue #9647)

* Apply suggestions from code review.

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

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2025-04-21 16:48:16 +02:00
Felix Fontein
f1d624e22b The next expected release is 10.7.0. 2025-04-21 16:35:21 +02:00
Felix Fontein
2a5abab738
Remove blanket skips for Python 3 in CI (#10043)
* Remove blanket skips for Python 3 in CI.

* Try to fix hg tests.

* Disable hg tests.

* Drop restriction of supervisor to <4.0.0.

This was introduced in https://github.com/ansible/ansible/pull/54935.

* Make tests work with supervisorctl 4.0.0.

According to https://supervisord.org/changes.html#id12,
"supervisorctl will now set its exit code to a non-zero value when an error condition occurs."
I'm not sure why a stopped service in 'status' constitutes an error condition,
but whatever 🤷...

* Use correct Python executable.

* Skip RHEL/macOS; diff on config write.

* Skip CentOS 7 and OpenSuSE on ansible-core 2.16.
2025-04-21 16:23:55 +02:00