Commit Graph
55419 Commits
Author SHA1 Message Date
34458fbadc Fix broken callback dispatch on skipped meta tasks (#86977) (#86979)
* Fix broken callback dispatch on skipped meta tasks

(cherry picked from commit cb535cf3d3)

Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>
2026-06-08 14:31:52 -05:00
Brian CocaandGitHub 37f63c8eac Ensure no_log does not use subsets (#86939) (#86951)
* also remove unused parameters from inner function

* Ensure no_log does not use subsets

Sort strings before using so the longer ones are processed first
avoiding strings that are subsets of each other creating partial
results.
Co-authored-by: David Shrewsbury <Shrews@users.noreply.github.com>

(cherry picked from commit 5c55372345)
2026-06-08 14:31:40 -05:00
Abhijeet KasurdeandGitHub 3aa2bab827 [stable-2.21] cli: handle empty PAGER value (#86909) (#86938)
Fixes: #86898
(cherry picked from commit 8754796)

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2026-06-08 14:31:30 -05:00
David ShrewsburyandGitHub 3d9229fdf3 Handle None return from read() in run_command() (#86922) (#86932)
(cherry picked from commit 776f90ae4b)
2026-06-08 14:31:20 -05:00
b45455e3f0 winrm/psrp - apply no_log to stdout/stderr logs (#86919) (#86927)
* winrm/psrp - apply no_log to stdout/stderr logs

This change censors the raw stdout/stderr logging used on the `winrm`
and `psrp` connection plugins with a verbosity level of 5 being set.
While by default the raw output isn't sensitive if a user has set a task
with `no_log: true` we shouldn't be displaying the raw results of that
task.

* Apply suggestions from code review




---------


(cherry picked from commit 49f1615157)

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
2026-06-08 14:31:09 -05:00
🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко)andGitHub 4e53d6000a [stable-2.21] 🧪 Pin Codecov CLI uploader env for Python 3.13 (#87045)
PR #87041

PR #87010 bumped the container used in CI for uploading the coverage
measurements to Codecov and its runtime now uses Python 3.13.

The previously set `.azure-pipelines/scripts/dependencies/codecov.txt`
pip constraints used to lock down the transitive dependencies in that
environment were of older versions and `test-results-parser==0.5.4`
caused pip to trigger building this dependency from an sdist due to
the latest platform-specific wheel available for that version being
tagged for Python 3.12.

The new container does not have enough of the build toolchain and the
build fails being unable to find the `cc` linker [[1]].

This patch mass-upgrades the transitive dependencies in said deptree
to newer versions that also ship platform-specific wheels for Python
3.13 and 3.14.

[1]: https://dev.azure.com/ansible/ansible/_build/results?buildId=181432&view=logs&j=d7668ad9-d7bb-5ae4-c14f-5061b89e467d&s=44856301-4c0b-5572-5f50-eb8e385c84fd&t=7f884d87-6a36-516f-9067-af4cf77c020d&l=93

ci_coverage
ci_complete
(cherry picked from commit d25ac06)
2026-05-29 09:45:20 -07:00
Matt ClayandGitHub 7275feae93 Update AZP container (#87011) 2026-05-27 19:30:25 -07:00
Matt DavisandGitHub 825933c493 Fix internal exception type on result thread (#87018)
* Bogus auto-import of sqlite.NotSupportedError instead of stdlib NotImplementedError
* No meaningful external visibility

(cherry picked from commit 30260d8e55)
2026-05-21 17:02:30 -07:00
sivel / Matt MartzandGitHub 4df5eaf312 [stable-2.21] update sqlite-libs during bootstrap (#87003) (#87004)
(cherry picked from commit 57f4901)
2026-05-19 17:43:26 -05:00
Matt DavisandGitHub 1280737b9a Update Ansible release version to v2.21.0.post0. (#86996) 2026-05-18 21:28:19 +00:00
Matt DavisandGitHub 98ab81f087 New release v2.21.0 (#86992) v2.21.0 2026-05-18 19:18:02 +00:00
Matt DavisandGitHub 62a1c11601 Update Ansible release version to v2.21.0rc1.post0. (#86912) 2026-04-28 19:53:30 +00:00
Matt DavisandGitHub a5f3424a19 New release v2.21.0rc1 (#86911) v2.21.0rc1 2026-04-28 18:54:37 +00:00
30457c77b8 [stable-2.21] git: fix track_submodules using hardcoded master branch (#86692) (#86883)
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

(cherry picked from commit 44aa5b8)

Signed-off-by: olegnazarov23 <olegnazarov23@users.noreply.github.com>
Co-authored-by: Oleg Nazarov <oleg@web-gravity.net>
2026-04-27 11:47:51 -05:00
Matt DavisandGitHub 887be29cd2 Update Ansible release version to v2.21.0b3.post0. (#86878) 2026-04-21 21:47:18 +00:00
Matt DavisandGitHub f27791615f New release v2.21.0b3 (#86877) v2.21.0b3 2026-04-21 16:43:04 +00:00
Matt DavisandGitHub 6272e9d6b6 Add INJECT_INVOCATION config (#86771) (#86865)
* 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

(cherry picked from commit 0df3d4abc5)
2026-04-21 11:57:37 +00:00
Matt DavisandGitHub 57b7d9d006 Add WORKER_SESSION_ISOLATION config for TTY sharing (#86762) (#86864)
* 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

(cherry picked from commit 5a2d53c6c6)
2026-04-21 11:53:27 +00:00
Matt DavisandGitHub aa4179ced7 Disable ansible-test azure cloud self-test (#86866) (#86870)
* Core CI service principal pool is broken, likely new global policy. This service is not used by core.

(cherry picked from commit 7678502c77)
2026-04-20 23:45:50 +00:00
Matt DavisandGitHub da34f5152a Fix ansible-test remote aliases for new-style args (#86844) (#86845)
* Always include `name` when applying remote config defaults for Posix/Windows.

(cherry picked from commit 00b1f27d9c)
2026-04-20 09:28:58 -05:00
Matt DavisandGitHub 52c5bcec6a Changelog-only deprecation notice (#86843) 2026-04-20 09:28:47 -05:00
Matt DavisandGitHub ef6927c4c4 Update Ansible release version to v2.21.0b2.post0. (#86838) 2026-04-13 20:27:15 +00:00
Matt DavisandGitHub a42572df4d New release v2.21.0b2 (#86833) v2.21.0b2 2026-04-13 12:50:59 -07:00
Matt ClayandGitHub f2dd7c1a33 [stable-2.21] ansible-test - Update distro containers (#86819) (#86820)
(cherry picked from commit a7fcd92081)
2026-04-10 10:19:27 -07:00
Sloane HertelandGitHub fe3a45f5e3 Fix --start-at-task (#86345) (#86816)
* 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.

(cherry picked from commit efb9446769)
2026-04-09 17:15:54 -05:00
sivel / Matt MartzandGitHub e27c30ea66 [stable-2.21] ansible-test - generate dist_info. Fixes #86695 (#86768) (#86796)
(cherry picked from commit bae4284)
2026-04-08 12:22:10 -05:00
sivel / Matt MartzandGitHub ef848ca369 [stable-2.21] Fix galaxy container setup issues with podman (#86801) (#86808)
(cherry picked from commit 5b10504)
2026-04-08 12:21:58 -05:00
sivel / Matt MartzandGitHub 087d8926e5 Update Ansible release version to v2.21.0b1.post0. (#86788) 2026-04-07 14:59:56 +00:00
sivel / Matt MartzandGitHub ae92d34a01 New release v2.21.0b1 (#86787) v2.21.0b1 2026-04-06 15:01:53 -05:00
sivel / Matt MartzandGitHub 30e3d8163a [stable-2.21] Skip podman rootful tests on RHEL10 (#86785) (#86786)
(cherry picked from commit 9ade959)
2026-04-06 18:45:57 +00: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
ca8444f238 Simplify pipelining logic for Windows ci_complete (#86734)
* Simplify pipelining logic for Windows ci_complete

Has the Windows connection plugins override is_pipelining_enabled to
return True rather than use the special connection plugin attributes.
These attributes should be removed in the future but when is still
dependent on when we can expect Ansible 2.19 is the minimum version
supported in collections.

* Make CI green

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>

---------

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
Co-authored-by: Abhijeet Kasurde <Akasurde@redhat.com>
2026-03-28 03:50:59 +10:00
Jordan BoreanandGitHub 85f371fe5d Fix windows test with coverage (#86736) 2026-03-28 03:06:17 +10:00
Patrick KingstonandGitHub 8d75344549 Pip editable now applies to all packages (#86732)
When editable is set to true, -e flag should be passed to all packages.
This change passes -e flag before each package name. However, if a
requirements file is used, then editable flag raises errors. Therefore,
editable and requirements are now mutually exclusive.

Fixes #77755

Signed-off-by: Nirmal Patel <nirmal@nirmal.dev>
2026-03-26 13:11:08 -07:00
Jordan BoreanandGitHub 1071baca60 Add support for PowerShell modules on POSIX (#86627)
* Add support for PowerShell modules on POSIX

Adds support for running modules written in PowerShell on non-Windows
hosts. This includes references to a PowerShell or C# module_util
located in Ansible or a collection. Not all module utils will work
outside of Windows but `Ansible.Basic` will do so.

Support for PowerShell modules on non-Windows is up to the module and
collection author. This PR just enables the ability to run them through
the existing PowerShell execution wrapper.

* Fix up sanity and unit tests, try and run in separate CI group

* Fix up powershell.sh group detection

* More sanity fixes

* More sanity fixes

* Ensure shebang is part of command to run

* Try and simplify exec module logic

* Attempt to get powershell group running in CI

* Fix up test integration aliases for powershell

* Remove ansible.windows collection for integration support

* Revert the win_powershell changes now they aren't needed

* Simplify test matrix and use default container
2026-03-27 05:56:38 +10:00
Abhijeet KasurdeandGitHub a0257b2dc3 User: Raise an error when force is used to delete group (#85610)
On platforms like Alpine and BusyBox, group delete operation
with force is not applicable. Raise an error notifying the
user about the same.

Fixes: #85565

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2026-03-26 12:03:31 +00:00
Ariel OtilibiliandGitHub cef7aab8b5 tests/integration: find: use directly variables and str concat (#86710) 2026-03-25 17:18:39 -07:00
af6f1afeaf Support core packaging operations against older python versions (#86432)
* split the dnf module into a cli shim and a module
* Update package_facts to use rpm cli, add package_facts and rpm_key to rhel8 targeted testing
* Switch resource embedding to EmbedManager.embed API


Co-authored-by: Matt Davis <nitzmahone@redhat.com>
2026-03-25 12:02:11 -05:00
Sloane HertelandGitHub a51536f311 Fix using the server's validate_certs config when downloading (#86705)
* Fix using the server's validate_certs configuration when downloading collections

* Fix validate_certs for verify

There is no GalaxyAPI on the collection object for verify since it wasn't created via the resolver

Remove unit test - would need more convoluted monkeypatching

* Simplify ConcreteArtifactsManager.save_collection_source by passing 2 arguments instead of 6

* Consolidate ConcreteArtifactsManager instance attrs _galaxy_collection_cache/_galaxy_collection_origin_cache
2026-03-25 11:20:34 -05:00
sivel / Matt MartzandGitHub 03c851d681 Switch to new galaxy-ng container setup (#86623) 2026-03-24 13:40:43 -05:00
ef7b026f77 apt: Handle comma-separated packages from recommends (#86613)
* While installing local deb packages, consider comma-separated
  packages from recommends

Fixes: #86609

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