Commit Graph
55429 Commits
Author SHA1 Message Date
sivel / Matt MartzandGitHub ff6b7e404a Add OrderedSet class (#84134) 2026-04-30 14:56:26 -05:00
sivel / Matt MartzandGitHub f074c20929 Drop email in favor of our own multipart generator. Fixes #76666 (#86687) 2026-04-30 14:54:54 -05:00
David ShrewsburyandGitHub 776f90ae4b Handle None return from read() in run_command() (#86922) 2026-04-30 15:03:21 -04:00
sivel / Matt MartzandGitHub 883360fa00 humans (#86910) 2026-04-28 13:30:32 -05:00
Brian CocaandGitHub 639bab6a44 sudo become plugin: add sudo-rs prompt support (#86175)
fixes #85837

Also move to fstrings
2026-04-27 12:51:34 -04:00
Abhijeet KasurdeandGitHub 266cb0ee16 Parameterize fetch_url tests (#86892)
Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2026-04-27 04:23:57 -07:00
2721c9d627 Fix git force to not override local commits (#86860)
* Add logic for toggleable local commit override

* Document tweaked git force logic

* Add tests for new commit-aware force

* Refactor switch_version

- duplicate code paths when handling 'HEAD'
- Fixed a FIXME

* Add changelog fragment

* Fix sanity and use fstrings

* Address 'diverged' case

* Revert to old structure

- Still contains new functionality
- Still contains FIXME

* Remove comments

* Update test/integration/targets/git/tasks/localmods.yml

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>

* Move cleanup to always

---------

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
2026-04-24 10:42:23 -04:00
3adecacccf Increase support for ftp urls across modules (#86885)
* Add generic success check for fetch_url

* Add unit test for new fn

* Add changelog, fix failing tests

* Apply suggestion from review

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>

---------

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
2026-04-23 10:51:21 -04:00
Matt DavisandGitHub b401c9246e Ensure ansible-galaxy test server shutdown (#86880)
* Accidental reuse on test retry usually timed out prematurely
2026-04-22 11:06:48 -07:00
44aa5b8936 git: fix track_submodules using hardcoded master branch (#86692)
The git module hardcodes 'master' when comparing submodule versions
with track_submodules=yes. This fails for repositories that use a
different default branch (e.g. 'main').

Read the branch from .gitmodules for each submodule, falling back to
the remote HEAD if no branch is configured. This respects the
submodule's configured branch and works regardless of the default
branch name.

Fixes #77691


Signed-off-by: olegnazarov23 <olegnazarov23@users.noreply.github.com>
Co-authored-by: Abhijeet Kasurde <Akasurde@redhat.com>
2026-04-22 15:20:33 +00:00
Abhijeet KasurdeandGitHub a1ba752ed3 tests: do not use reserved 'tags' name (#86823)
Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2026-04-21 11:15:21 -04:00
Martin KrizekandGitHub 99a155d6db More reliable non-lockstep strategies callback test (#86813)
ci_coverage
ci_complete
2026-04-21 11:08:46 -04:00
Abhijeet KasurdeandGitHub f1144ba81f User: Add support for move_home for Alpine Linux (#86810)
* User: Add support for move_home for Alpine Linux

Fixes: #85521

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2026-04-21 11:04:44 -04:00
Matt DavisandGitHub 7678502c77 Disable ansible-test azure cloud self-test (#86866)
* Core CI service principal pool is broken, likely new global policy. This service is not used by core.
2026-04-20 23:35:39 +00:00
Matt DavisandGitHub 5a2d53c6c6 Add WORKER_SESSION_ISOLATION config for TTY sharing (#86762)
* Add WORKER_SESSION_ISOLATION config for TTY sharing

* Worker should always be new PG leader

* Use non-deprecated os.setpgid for non-session-isolates case
* Validate session-isolated and not in signal_propagation integration test
2026-04-20 14:50:06 -07:00
Matt DavisandGitHub 0df3d4abc5 Add INJECT_INVOCATION config (#86771)
* Add `INJECT_INVOCATION` config, misc invocation cleanup

* clean up copy action invocation injection

* add basic test coverage

* unbork templated config, misc test cleanup

* force invocation output in roles test
2026-04-20 14:49:43 -07:00
Abhijeet KasurdeandGitHub 7611079116 tests: enable setup_cron for Alpine (#86751)
Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2026-04-20 11:49:22 -07:00
Matt ClayandGitHub bd7fa60c24 Remove Windows Server 2016 support (#86852)
* ansible-test - Remove Windows Server 2016 remote
* Drop Windows Server 2016 support from psrp connection plugin
* Remove test support for EOL Windows versions
* Tighten up win_script integration test
* Remove obsolete Windows version check from test
2026-04-16 02:42:17 +00:00
Matt ClayandGitHub a5a9fbd9ec ansible-test - Replace Fedora 43 with 44 (#86851) 2026-04-16 01:19:33 +00:00
Patrick KingstonandGitHub a250aafa9f Add winrm hostname to stdin error (#86840)
* Enhance winrm connection failure

- Add winrm_hostname to the failure message for clarity
- Test that we're able to reach this message with a custom action plugin

* Create changelog fragment

* Make action plugin less verbose

* Remove more comments (they were bad)
2026-04-16 07:55:29 +10:00
Matt DavisandGitHub 00b1f27d9c Fix ansible-test remote aliases for new-style args (#86844)
* Always include `name` when applying remote config defaults for Posix/Windows.
2026-04-14 18:03:58 -07:00
sivel / Matt MartzandGitHub c3ea1f9a8f Update badgest in README to indicate Matrix and Forum (#86839) 2026-04-14 10:52:18 -05:00
Matt ClayandGitHub 53448d7c5d Add support for Python 3.15 (#86821) 2026-04-10 10:18:45 -07:00
Matt ClayandGitHub a7fcd92081 ansible-test - Update distro containers (#86819) 2026-04-10 02:16:44 +00:00
Matt ClayandGitHub a712f79bf1 ansible-test - Upgrade coverage for Python 3.10+ (#86811)
* Upgrade coverage for Python 3.10+.
* Fix unit tests.
* Use ctrace to improve performance. It's unclear why this improves performance on Python 3.10 and 3.14.
2026-04-09 17:03:34 -07:00
Sloane HertelandGitHub efb9446769 Fix --start-at-task (#86345)
* Add VALIDATE state to IteratingStates and FailedStates instead of overloading cur_regular_task, which marks the --start-at-task location.

fixes #86268

* Fix skipping validate_argspec by not tagging with 'always' when inheriting play-level tags. Now it aligns with play-level gather_facts tag usage.
2026-04-09 13:19:47 -04:00
sivel / Matt MartzandGitHub fb8c4d3177 Add a skill for LLMs on how to get the azp logs for analysis (#86765) 2026-04-09 16:45:43 +00:00
Martin KrizekandGitHub 54cdaedfbc Remove deprecated ANSIBLE_CONNECTION_PATH option (#86791) 2026-04-09 08:13:37 +02:00
Martin KrizekandGitHub 073f444052 Add runtime deprecation warning for six (#86806)
Soft deprecated in ansible-core 2.21

Fixes #86789
2026-04-09 08:13:01 +02:00
sivel / Matt MartzandGitHub 5b10504b5e Fix galaxy container setup issues with podman (#86801) 2026-04-08 11:04:17 -05:00
Martin KrizekandGitHub 6cf3df5ac5 fetch: fix typo in module docs (#86807) 2026-04-08 10:47:29 -04:00
Martin KrizekandGitHub c9f5005be7 follow_redirects: remove the deprecated use of yes/no (#86793)
Fixes #86790
2026-04-08 11:13:08 +02:00
Abhijeet KasurdeandGitHub 6d350ae78c yum_repository: Removed deprecated parameters (#86794)
Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2026-04-08 11:08:26 +02:00
Martin KrizekandGitHub 0980f39d7d Removed deprecated DEFAULT_LIBVIRT_LXC_NOSECLABEL (#86792) 2026-04-08 08:11:31 +02:00
Martin KrizekandGitHub 3f15ac70ad find: clarify regex usage in patterns (#86764) 2026-04-08 08:09:52 +02:00
sivel / Matt MartzandGitHub a36f73b473 ansible-test - Only add volume bind mount for docker.sock when using docker (#86802) 2026-04-07 13:35:01 -05:00
sivel / Matt MartzandGitHub bae4284820 ansible-test - generate dist_info. Fixes #86695 (#86768) 2026-04-07 12:28:25 -05:00
f1179b1f7d Sort galaxy FILES.json for build reproducibility (#86770)
* added the sorting of FILES.json based on name with ASCII2 ordering
* remove useless code
* Add comprehensive tests for FILES.json sorting to ensure reproducible builds

This commit adds tests to validate the FILES.json sorting feature implementation (issue #82792).

Unit Tests (test/units/galaxy/test_collection.py):
- test_build_files_manifest_sorted_by_name: Validates ASCII sorting
- test_build_files_manifest_walk_sorted_output: Tests walk function
- test_build_collection_reproducible_build: Ensures reproducibility
- test_build_files_manifest_special_characters_sorted: Edge cases
- test_files_json_has_sorted_keys: Validates JSON key ordering
- test_build_collection_large_number_of_files_sorted: Scale testing

Integration Tests (test/integration/.../build.yml):
- Multiple builds produce identical FILES.json
- Verify FILES.json reproducible across builds
- Verify all files in ASCII sorted order
- Validate FILES.json format and structure
- Verify each file entry has required fields

Per the comment that 'this should follow the same pattern as _build_collection_tar', add `sort_keys` to this invocation of `json.dumps`
Also removes a sort because files area already sorted in `_build_files_manifest`, which is the source of `file_manifest` in `_build_collection_dir`'s only invocation (line 1669)

Co-authored-by: Thomas Wang <yuanchen.wang@optus.com.au>
Co-authored-by: Thomas Wang <yctomwang123@gmail.com>
Co-authored-by: pvskp <pvincius14@gmail.com>
2026-04-07 12:34:12 -04:00
sivel / Matt MartzandGitHub a496819b4d Bump devel to 2.22 (#86784) 2026-04-06 14:21:41 -05:00
sivel / Matt MartzandGitHub 9ade959713 Skip podman rootful tests on RHEL10 (#86785) 2026-04-06 13:28:40 -05:00
Nick MarshallandGitHub 260fcabb79 ansible-playbook - refactor task processing to remove duplicated loading logic (#86603) 2026-04-02 20:51:35 +00:00
sivel / Matt MartzandGitHub 81c4615453 Add 2.21 release name. Fixes #86005 (#86766) 2026-04-02 20:13:56 +00:00
0aef93bca0 Remove paramiko connection (#86757)
* Remove paramiko connection plugin deprecation warning (#86002)

Remove deprecated paramiko connection plugin

Remove integration tests for paramiko connection plugin

Fix connection fallback after paramiko removal

Revert connection fallback changes

* Remove internal use of the paramiko connection

Setting connection to 'smart' now always uses 'ssh', 'persistent' now always uses 'ansible.netcommon.persistent'

Remove unused test helper

Deprecate PluginLoader aliases

ci_complete

* Remove deprecated portion of lib/ansible/module_utils/compat/paramiko.py

add changelog

* Fully remove ansible.module_utils.compat.paramiko

---------

Co-authored-by: Simon <siimonchernyk@gmail.com>
2026-04-02 14:15:19 -05:00
Nick MarshallandGitHub f6d0379191 ansible-vault - improved formatting of ansible-vault error messages (#86602) 2026-04-02 19:03:13 +00:00
7a4bd08663 ansible-vault - keep the original contents on EDITOR failure (#86731)
Currently when the editor returns a failure exit code in `ansible-vault edit`,
the original file is still being overwritten by whatever is in the temporary
file. This is undesirable when some process already made edits to the temporary
file and then later fails for some reason, since the file might only be
partially modified and thus corrupt.

Fix this by using `check_call()` instead of `call()` to throw an Exception when
the exit code is non-zero.

Co-authored-by: Matt Clay <matt@mystile.com>
2026-04-02 11:20:34 -07:00
64d74c9754 Register projections and action plugin dynamic host/group/var API (#86241)
* Register projections and action plugin variable API

Co-authored-by: Matt Clay <matt@mystile.com>
Co-authored-by: Patrick Kingston <pkingsto@redhat.com>
2026-03-31 23:09:14 +00:00
8d24f0d32f Deprecate apt_* using runtime.yml (#86690)
Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
Co-authored-by: Matt Clay <matt@mystile.com>
2026-03-28 05:19:07 -07:00
Felix FonteinandGitHub e4004d720d Upgrade ACME test image to 2.4.0. (#86740) 2026-03-27 17:20:11 -07:00
Matt ClayandGitHub 36e9711c26 Fix deepcopy support for imported templates (#86727) 2026-03-27 15:23:27 -07:00
4da24b8128 apt: recreate apt cache if /var/lib/apt/lists is missing (#86612)
* While creating bare minimum container images, sometimes
  /var/lib/apt/lists is removed.
  Recreate this directory in order to update cache successfully.

Fixes: #61176

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
Co-authored-by: Sloane Hertel <19572925+shertel@users.noreply.github.com>
2026-03-27 17:36:17 -04:00