Commit Graph
55242 Commits
Author SHA1 Message Date
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
sivel / Matt MartzandGitHub 25c6c0d591 Update Ansible release version to v2.20.2.post0. (#86490) 2026-01-29 20:10:35 +00:00
sivel / Matt MartzandGitHub 1f89f00ffa New release v2.20.2 (#86486) v2.20.2 2026-01-29 13:20:02 -06:00
Matt ClayandGitHub 0b4aa48300 [stable-2.20] Fix direct S3 link in integration tests (#86464) (#86465)
Also add a sanity test to prevent similar issues in the future.

(cherry picked from commit b1bc1e2513)
2026-01-26 15:47:31 -08:00
Matt DavisandGitHub b62c790fda Update Ansible release version to v2.20.2rc1.post0. (#86454) 2026-01-23 02:20:33 +00:00
Matt DavisandGitHub f6f6afa81e New release v2.20.2rc1 (#86450) v2.20.2rc1 2026-01-23 01:25:01 +00:00
6663ee3236 Fix LIB env var incorrectly set to "System.Collections.DictionaryEntry" (#86436) (#86440)
This is a fix for a common issue where Ansible is setting the LIB env var to the data type (System.Collections.DictionaryEntry) and not the actual value.

It unfortunately causes downstream issues if you run PowerShell scripts that are affected by the LIB variable not being a search path, but an incorrect string. It causes Add-Type to fail on even the simples call (like `Add-Type "using System;"`

(cherry picked from commit a0b3c7c0d6)

Co-authored-by: Dag Wieers <dag@wieers.com>
2026-01-21 09:41:32 -08:00
Brian CocaandGitHub a5acf03332 ansible_local should not trigger deprecation (#86234) (#86301)
* ansible_local should not trigger deprecation

fixes #86228

(cherry picked from commit ca6dc93dcc)
2026-01-14 14:16:30 -08:00
85ddbc4444 copy - fix reporting changed=True when a single-file dir is copied with remote_src=False (#85834) (#86336)
* Fix directory path construction in the action plugin

Fixes #85833

(cherry picked from commit 17fb4af38d)

Co-authored-by: Yuxiao Zeng <98871678+fh-yuxiao-zeng@users.noreply.github.com>
2026-01-14 14:13:23 -08:00
sivel / Matt MartzandGitHub f13785e859 [stable-2.20] fix package installation when specifying architecture without version. Fixes #86156 (#86219) (#86297)
(cherry picked from commit 8a4b184)
2026-01-14 14:04:24 -08:00
Sloane HertelandGitHub 2e35dd00ce adhoc, ansible-console - fix traceback for meta end_play tasks (#86294) (#86337)
Ensure all entrypoints using TaskQueueManager catch AnsibleEndPlay

(cherry picked from commit f924902830)
2026-01-14 13:55:35 -08:00
sivel / Matt MartzandGitHub 4a07e68d06 [stable-2.20] state=latest now installs modules when missing. Fixes #73457 (#86328) (#86340)
(cherry picked from commit 85d2083)
2026-01-14 13:53:58 -08:00
Jordan BoreanandGitHub 8b36a3011c winrm - Add better Kerberos error (#86317) (#86324)
* winrm - Add better Kerberos error

Adds a better error when Kerberos authentication is requested but the
`pykerberos` library is not installed. This also removes the fallback to
basic auth if the username is in the UPN format and no transport/auth
method is specified. This is because a UPN user must be a domain account
and domain accounts cannot be used with basic auth.

* Add more docs about user settings

* Fix some grammar issues

(cherry picked from commit 595b4f0390)
2026-01-14 13:52:04 -08:00
Sloane HertelandGitHub 1ec3664d05 Fix module_defaults templating for gather_facts, service, and package actions (#85857) (#86399)
* Ensure action plugins template module arguments from module_defaults as necessary

(cherry picked from commit f2357cdc53)
2026-01-14 13:49:59 -08:00
ac7d3e1756 [stable-2.20] Remove Install-Python-Debian from the output of deb822_repository (#86403) (#86405)
(cherry picked from commit 28927a7)


Fixes: #86395

Co-authored-by: Patrick Kingston <66141901+pkingstonxyz@users.noreply.github.com>
2026-01-14 13:47:53 -08:00
Abhijeet KasurdeandGitHub d284c0ba46 [stable-2.20] Misc typo fix (#86322) (#86338)
(cherry picked from commit 039b94c)

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2026-01-14 13:46:39 -08:00
Matt ClayandGitHub 2d7dd24301 [stable-2.20] ansible-test - Replace RHEL 10.0 with 10.1 (#86387) (#86389)
(cherry picked from commit 3df8aeed80)
2026-01-07 17:18:58 -08:00
Matt ClayandGitHub 19486e8115 [stable-2.20] ansible-test - Upgrade to RHEL 9.7 (#86374) (#86376)
(cherry picked from commit 6c024e24b4)
2026-01-05 18:16:27 -08:00
Matt ClayandGitHub 0266f594e0 [stable-2.20] ansible-test - Fix expat on Fedora 42 remotes (#86375) (#86381)
(cherry picked from commit 52cd605887)
2026-01-05 14:13:50 -08:00
sivel / Matt MartzandGitHub f0e7fcadf5 Update Ansible release version to v2.20.1.post0. (#86316) 2025-12-09 17:54:27 +00:00
sivel / Matt MartzandGitHub 55ee8acd65 New release v2.20.1 (#86312) v2.20.1 2025-12-09 10:24:07 -06:00
sivel / Matt MartzandGitHub c0a6166fd1 Update Ansible release version to v2.20.1rc1.post0. (#86290) 2025-12-02 23:58:12 +00:00
sivel / Matt MartzandGitHub 754d8eb868 New release v2.20.1rc1 (#86286) v2.20.1rc1 2025-12-02 23:22:33 +00:00
fe6654bc8c vars loading, show file name instead of vars in error (#86277) (#86280)
* Show file instead of vars on load error

(cherry picked from commit 490795770f34120adc02b08fc24fc50be6ac68a2)
(cherry picked from commit 11a2d02bf2)

* merged

* Update lib/ansible/vars/manager.py



---------


(cherry picked from commit 335db20951)

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
2025-12-02 22:44:31 +00:00
Abhijeet KasurdeandGitHub 19428e37af [stable-2.20] regex: fix example documentation for regex_test (#86172) (#86256)
Fixes: https://github.com/ansible/ansible-documentation/issues/3246
(cherry picked from commit 5f2d96c)

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2025-12-02 09:36:58 -06:00
f704b0c7ef runtime-metadata sanity test: ignore pre-release and build identifier (#85198) (#86159)
* Ignore pre-release and build identifier.

* Add tests.

* Improve changelog fragment.



* Extend tests.

---------


(cherry picked from commit 89ba882b08)

Co-authored-by: Matt Clay <matt@mystile.com>
2025-11-24 09:17:44 -06:00
4e2136cdbd [stable-2.20] Fix getuser fallback error handling (#86144) (#86167)
(cherry picked from commit 4184d96)

Co-authored-by: Matt Clay <matt@mystile.com>
2025-11-24 09:17:12 -06:00
79a243940f Fix AnsibleModule.human_to_bytes (#85259) (#86173)
* Fix AnsibleModule.human_to_bytes.

* Add unit test.

* Fix wrong example in docstring.

* Forgot tests without keyword.



* Apply review suggestions.

* Add type hints.



---------



(cherry picked from commit 13a7393cfe)

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
Co-authored-by: Matt Clay <matt@mystile.com>
2025-11-24 09:16:20 -06:00
Abhijeet KasurdeandGitHub 8de1d8ea3f [stable-2.20] get_url: Fix regex for GNU digest line (#86134) (#86215)
* GNU digest line may contain multiple spaces between
  checksum and filename. Fix regex to handle this situation.

Fixes: #86132
(cherry picked from commit af9009b)

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2025-11-24 09:15:07 -06:00
cc7b984418 [stable-2.20] Fix first_found example (#86224) (#86225)
(cherry picked from commit ce84d31)

Co-authored-by: Matt Clay <matt@mystile.com>
2025-11-24 09:14:50 -06:00
Matt ClayandGitHub 0feb43a333 [stable-2.20] ansible-test - Improve AZP commit API error handling (#86197) (#86201)
(cherry picked from commit 3d26431e4f)
2025-11-14 12:49:00 -08:00
9d38ce7007 [stable-2.20] 🧪 Set timeouts for CI jobs (#86109)
Sometimes, AZP would mark steps in jobs as cancelled when they've
actually exited successfully but on the boundary of the default
60-minute timeout. Such logs might be difficult to reason about.

Additionally, `entry-point.sh` sets a 60-minute timeout for the main
test invocation but it would never trigger earlier that AZP would kill
such a job as the job-global timeout was 60 minutes already and it'd
always be hit earlier than the test runner one.

The patch sets maximum observable job timeouts with extra buffer to
account for flakiness.

PR #86073
(cherry picked from commit 730af32)

Co-authored-by: Matt Clay <matt@mystile.com>
2025-11-14 11:11:35 -08:00
🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко)andGitHub f5fc17ad39 [stable-2.20] Install xt_comment kernel mod @ iptables test (#86187) (#86195)
This patch fixes integration test jobs running under RHEL 10.0 that don't have this extension pre-installed.

(cherry picked from commit 69c9fbed26)
2025-11-14 10:21:47 -08:00
Matt ClayandGitHub 9db2cae072 [stable-2.20] Fix unit test serialization (#86163) (#86164)
This allows the test to work on pytest 9+

(cherry picked from commit 76f07034b3)
2025-11-10 18:36:25 -08:00
Matt DavisandGitHub bc15b10d18 Update Ansible release version to v2.20.0.post0. (#86131) 2025-11-05 00:21:29 +00:00
Matt DavisandGitHub 85a7a5ae15 New release v2.20.0 (#86126) v2.20.0 2025-11-04 15:27:13 -08:00
Matt ClayandGitHub ba5ba3ccfc Update Ansible release version to v2.20.0rc3.post0. (#86097) 2025-10-29 20:56:48 +00:00
Matt ClayandGitHub 560b1af96d New release v2.20.0rc3 (#86093) v2.20.0rc3 2025-10-29 19:59:16 +00:00
Brian CocaandGitHub 8a85ee8363 option deprecations show alternatives (#86032) (#86069)
Give users a helpful hint on what to do to address the deprecation

(cherry picked from commit 516a114ef6)
2025-10-29 11:23:04 -07:00
Abhijeet KasurdeandGitHub 032d91897b [stable-2.20] package_facts: typecast bytes to string while returning facts (#85939) (#86046)
Fixes: #85937
(cherry picked from commit ef53d63)

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2025-10-29 11:20:42 -07:00
2721b0d50a config lookup, fix 'show_origin' and variables (#85356) (#86041)
show_origin and variable sources were broken for base config when 'forked' from plugins
---------
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>

(cherry picked from commit 1cb2932c95)
2025-10-29 11:18:30 -07:00
2ca84eea86 [stable-2.20] Remove AddType warning for cleanup (#86029) (#86039)
* Remove AddType warning for cleanup (#86029)

Removes the warning emitted when using Add-Type and the cleanup of temp
files fails due to a file still being in use. The cleanup should be
handled by AnsibleModule on exit giving it more time to wait for any
open file handles to close. The exception is still present if calling
`Add-CSharpType` without an `AnsibleModule` object.

(cherry picked from commit 99bb587906)

* Update win_exec_wrapper integration test to match #86029 (#86052)

* Remove assertion now that there is no warning

(cherry picked from commit df34bf9e70)

---------

Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
2025-10-29 11:14:45 -07:00
Matt ClayandGitHub 549a6acac8 ansible-test - Update default containers (#86088) 2025-10-28 14:02:11 -07:00
Matt ClayandGitHub 453a706c85 [stable-2.20] ansible-test - Update sanity requirements (#86083) (#86084)
(cherry picked from commit 12acd5c18f)
2025-10-28 18:12:59 +00:00
sivel / Matt MartzandGitHub 3e33dc5cbf Update Ansible release version to v2.20.0rc2.post0. (#86037) 2025-10-20 21:09:42 +00:00