Commit Graph
55286 Commits
Author SHA1 Message Date
sivel / Matt MartzandGitHub d46b0276c6 Update Ansible release version to v2.20.7rc1.post0. (#87102) 2026-06-11 20:08:27 +00:00
sivel / Matt MartzandGitHub 16cc869d8e New release v2.20.7rc1 (#87096) v2.20.7rc1 2026-06-11 14:28:05 -05:00
e67e842aa8 [stable-2.20] Fix CVE-2026-11332 - prevent role requirements from configuring git (#87077)
* Fix CVE-2026-11332 - prevent role requirements from configuring git (#87070)

* Pass malformed role requirements as positional arguments to prevent arbitrary git configuration

* Add test coverage, checking for specific errors and that git clone is always followed by --

Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
(cherry picked from commit edee59aa15)

* Fix ansible-galaxy-role test isolating stderr (#87085)

Follow up to #87070 to fix the test

Fix ansible-galaxy-role test isolating stder

Remove new feature to backport as-is

(cherry picked from commit bebae770d3)

---------

Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
2026-06-09 10:23:40 -05:00
Brian CocaandGitHub 6c3c0d5035 Ensure no_log does not use subsets (#86939) (#86952)
* 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:51:34 -05:00
🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко)andGitHub ba2f74fd3a [stable-2.20] 🧪 Pin Codecov CLI uploader env for Python 3.13 (#87046)
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:28 -07:00
Matt ClayandGitHub 0a7646475b Update AZP container (#87012) 2026-05-27 19:30:30 -07:00
sivel / Matt MartzandGitHub ca698b0052 [stable-2.20] update sqlite-libs during bootstrap (#87003) (#87005)
(cherry picked from commit 57f4901)
2026-05-19 17:43:40 -05:00
Matt DavisandGitHub e96c3d9d0f Update Ansible release version to v2.20.6.post0. (#86995) 2026-05-18 21:23:05 +00:00
Matt DavisandGitHub 4cb8284006 New release v2.20.6 (#86991) v2.20.6 2026-05-18 19:15:21 +00:00
Matt DavisandGitHub abc7274445 Update Ansible release version to v2.20.6rc1.post0. (#86973) 2026-05-14 14:35:53 +00:00
Matt DavisandGitHub 9dc1e98217 New release v2.20.6rc1 (#86971) v2.20.6rc1 2026-05-11 19:17:15 +00:00
Matt Davis 50d53b8cfd Revert "sudo become plugin: add sudo-rs prompt support (#86175) (#86904)"
This reverts commit dfc1f8d6f5.
2026-05-11 11:28:03 -07:00
219ca0c6d8 [stable-2.20] git: fix track_submodules using hardcoded master branch (#86692) (#86884)
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-05-11 10:27:24 -07:00
Brian CocaandGitHub dfc1f8d6f5 sudo become plugin: add sudo-rs prompt support (#86175) (#86904)
fixes #85837

Also move to fstrings

(cherry picked from commit 639bab6a44)
2026-05-11 10:24:31 -07:00
David ShrewsburyandGitHub bd874a90f1 Handle None return from read() in run_command() (#86922) (#86933)
(cherry picked from commit 776f90ae4b)
2026-05-07 12:30:13 -05:00
f8fca95393 winrm/psrp - apply no_log to stdout/stderr logs (#86919) (#86926)
* 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-05-07 12:30:02 -05:00
Matt DavisandGitHub b89ff26e92 Fix ansible-test remote aliases for new-style args (#86844) (#86846)
* Always include `name` when applying remote config defaults for Posix/Windows.

(cherry picked from commit 00b1f27d9c)
2026-05-07 12:29:51 -05:00
Matt DavisandGitHub c4b476408d Update Ansible release version to v2.20.5.post0. (#86875) 2026-04-21 11:53:13 +00:00
Matt DavisandGitHub a5b61bc6ee New release v2.20.5 (#86873) v2.20.5 2026-04-21 00:44:49 +00:00
Matt DavisandGitHub 482c94a4f9 Disable ansible-test azure cloud self-test (#86866) (#86869)
* 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:38 +00:00
Matt DavisandGitHub c9e6f5d97e Update Ansible release version to v2.20.5rc1.post0. (#86837) 2026-04-13 20:38:31 +00:00
Matt DavisandGitHub 6e3ad7424f New release v2.20.5rc1 (#86832) v2.20.5rc1 2026-04-13 12:50:55 -07:00
82d13085a2 Fix deepcopy support for imported templates (#86727) (#86829)
(cherry picked from commit 36e9711c26)

Co-authored-by: Matt Clay <matt@mystile.com>
2026-04-13 17:36:53 +00:00
Sloane HertelandGitHub 5c85908eab Fix --start-at-task (#86345) (#86817)
* 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:16:00 -05:00
f2a58fd3b2 [stable-2.20] Fixes Parsing for ClearLinux exposed by Gentoo (#86384) (#86783)
* Fixes Parsing for ClearLinux exposed by Gentoo changing os-release, Quoting from " to ', also fixes NA parsing to strip both kinds of quotes
(cherry picked from commit 869088b)

Co-authored-by: RealKelsar <tetja@tetja.de>
2026-04-08 14:29:16 -05:00
Sloane HertelandGitHub 2b1bc9b7db Fix using the server's validate_certs config when downloading (#86705) (#86728)
* 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

(cherry picked from commit a51536f311)
2026-04-08 14:28:42 -05:00
sivel / Matt MartzandGitHub 3b89cd22bb [stable-2.20] ansible-test - generate dist_info. Fixes #86695 (#86768) (#86797)
(cherry picked from commit bae4284)
2026-04-08 12:22:45 -05:00
Matt ClayandGitHub dd779127a1 [stable-2.20] ansible-test - Switch macOS remote to aarch64 (#86653) (#86702)
(cherry picked from commit 3f10c2c0a9)
2026-03-23 17:24:18 -07:00
sivel / Matt MartzandGitHub 575ce86bef Update Ansible release version to v2.20.4.post0. (#86717) 2026-03-23 19:57:01 +00:00
sivel / Matt MartzandGitHub 4c777317e9 New release v2.20.4 (#86713) v2.20.4 2026-03-23 12:38:45 -05:00
sivel / Matt MartzandGitHub 4213c312bc Update Ansible release version to v2.20.4rc1.post0. (#86667) 2026-03-16 20:51:38 +00:00
sivel / Matt MartzandGitHub 468a997821 New release v2.20.4rc1 (#86663) v2.20.4rc1 2026-03-16 11:43:26 -05:00
Matt ClayandGitHub e9076a74e8 ansible-test - Add managed test environment aliases (#86592) (#86650)
(cherry picked from commit 3300932a74)
2026-03-16 08:51:01 -05:00
Matt ClayandGitHub 8c7f8dd987 [stable-2.20] ansible-test - Add support for GitHub Actions (#86643) (#86645)
(cherry picked from commit dfdada96d7)
2026-03-16 08:50:49 -05:00
Brian CocaandGitHub 27def55d9b config lookup, fallback to existing constants when needed (#86516) (#86559)
(cherry picked from commit 8730acbb2d)
2026-03-12 23:27:29 +00:00
Jordan BoreanandGitHub 8c43aeb3cc [stable-2.20] Fix powershell method on non-pipelined conns (#86642)
* Fix powershell method on non-pipelined conns (#86619)

Fixes the action plugin mkdtemp and expand_user calls to fallback to the
original non-pipelined variants when a connection plugin does not
support pipelining. For example a 3rd party Windows connection plugin
may not support pipelining and thus cannot use the user _mkdtemp2 and
_expand_user2 variants exposed by the `powershell` shell plugin as they
require data to be sent over stdin.

(cherry picked from commit 51d5a456ef)

* Testing tweaks for 2.20 compat
2026-03-12 23:26:27 +00:00
Matt ClayandGitHub 35c453bc8e [stable-2.20] Fix YAML string loading using Python loader (#86421) (#86575)
(cherry picked from commit 7d281b2a7c)
2026-03-12 23:16:53 +00:00
Sloane HertelandGitHub 7d174104be [stable-2.20] Document paramiko_ssh deprecation (#86258)
* Add deprecated to paramiko_ssh DOCUMENTATION

* Fix deprecation

Rename plugin with prefix _

Fix validate-modules bug introduced in 2.18 for ansible.builtin plugins

* Add 'removed' to the initial definition of main_fields
2026-03-12 22:06:37 +00:00
David ShrewsburyandGitHub dea7bfce08 Replace gpg in rpm_key with librpm (#86237) (#86615)
* Replace gpg in rpm_key with librpm

(cherry picked from commit 2341354ffa)
2026-03-12 16:42:33 -05:00
Matt DavisandGitHub 8071388f61 Fix network module failures on tagged RPC responses (#86601) (#86605)
Fix network module failures on tagged RPC responses

* Zap tags in networking JsonRpcServer before pickling responses.
* Verify with unit test - suboptimal, but avoids a fake network connection plugin.

(cherry picked from commit a287389124)
2026-03-12 16:42:04 -05:00
Matt DavisandGitHub bc7b78fa9c Update Ansible release version to v2.20.3.post0. (#86590) 2026-02-24 00:07:23 +00:00
Matt DavisandGitHub 4f1576ae43 New release v2.20.3 (#86585) v2.20.3 2026-02-23 23:08:01 +00:00
Matt DavisandGitHub bacbb0ecde Update Ansible release version to v2.20.3rc1.post0. (#86570) 2026-02-17 20:03:27 +00:00
Matt DavisandGitHub e80674478a New release v2.20.3rc1 (#86566) v2.20.3rc1 2026-02-17 18:29:44 +00:00
David ShrewsburyandGitHub 966db65ea2 Fix local connection interaction with become plugins (#86473) (#86509)
The local connection plugin is incorrectly passing a bytearray to methods of become plugins that expect bytes. A recent change to the su plugin exposed this by breaking the become plugin for different locale settings (the bytearray was not properly converted to a str for comparison operations). This changes the local connection plugin to send bytes.

(cherry picked from commit 90595736ed)
2026-02-11 11:48:04 -06:00
Jordan BoreanandGitHub b1270aa897 Action make_tmp_path fix error (#86505) (#86513)
Fixes the error to only include the command rather than the dataclass
repr. This goes back to how it worked in the past before `_mkdtemp2` was
added.

(cherry picked from commit 2c1fdfe0eb)
2026-02-11 11:47:45 -06:00
Martin KrizekandGitHub c83999378d [stable-2.20] async_status: inherit delegate_to from original task (#86493) (#86521)
Fixes #86491

ci_complete
(cherry picked from commit d9deb945b0)
2026-02-11 11:47:32 -06:00
Abhijeet KasurdeandGitHub 2d1b4dc2d9 [stable-2.20] config: Correct config in COLLECTIONS_PATHS (#86514) (#86522)
(cherry picked from commit 03776e3)

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2026-02-11 11:47:17 -06:00
Matt ClayandGitHub 01166f5a4e [stable-2.20] ansible-test - Update the Ansible Core CI endpoint (#86455) (#86499)
(cherry picked from commit ade3d2c3ff)
2026-01-30 22:51:38 +00:00
Matt ClayandGitHub 7594cfec2f [stable-2.20] ansible-test - Update spare-tire URL (#86477) (#86496)
(cherry picked from commit 7f7884fc4f)
2026-01-30 22:31:47 +00:00