Commit Graph
55431 Commits
Author SHA1 Message Date
sivel / Matt MartzandGitHub fc8ea2f400 New release v2.21.2rc1 (#87224) v2.21.2rc1 2026-07-06 13:31:29 -05:00
Abhijeet KasurdeandGitHub 2e79c4f944 encrypt: fix bcrypt salt string formatting (#87184) (#87193)
* fix bcrypt salt string formatting on musl libc by ensuring it is always zero-padded to 2 digits

Fixes: #87180


(cherry picked from commit 78c337b827)

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2026-07-01 13:49:54 -05:00
Sloane HertelandGitHub 09a27727f1 async_wrapper - fix race condition writing timeout result to job file (#87090) (#87159)
The async_wrapper now stops the module process before writing the timeout result to the async job file. This ensures a valid JSON file that async_status can parse.

Improve gather_facts parallel=true timeout responsiveness when gather_timeout is less than 10.

Fix integration tests.

(cherry picked from commit 3d3afdb34b)
2026-06-30 11:24:26 -05:00
Matt ClayandGitHub 25a4cb83b0 [stable-2.21] ansible-test - Add timeout callback (#87091) (#87171)
When the ansible-test timeout is enabled, a callback plugin is injected
into ansible-playbook that uses faulthandler.dump_traceback_later to
write all thread stacks to a file shortly before the deadline. This
provides diagnostic information for intermittent CI hangs where the
process stops producing output with no traceback or error.

Also fixes collection/setup.sh to handle multiple colon-separated
paths in ANSIBLE_COLLECTIONS_PATH.

(cherry picked from commit 5e5d863173)

Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-06-29 08:30:57 -07:00
sivel / Matt MartzandGitHub 97108fac2e Update Ansible release version to v2.21.1.post0. (#87139) 2026-06-18 20:17:04 +00:00
sivel / Matt MartzandGitHub a45896d986 New release v2.21.1 (#87133) v2.21.1 2026-06-18 14:33:01 -05:00
sivel / Matt MartzandGitHub 223d672289 Update Ansible release version to v2.21.1rc1.post0. (#87101) 2026-06-12 13:08:35 +00:00
sivel / Matt MartzandGitHub 82ccb4543e New release v2.21.1rc1 (#87095) v2.21.1rc1 2026-06-11 14:27:58 -05:00
David ShrewsburyandGitHub daeff35943 Use errno symbol instead of hardcoded value in wait_for (#87087) (#87093)
(cherry picked from commit d772fe65b7)
2026-06-11 13:06:34 -05:00
David ShrewsburyandGitHub 75d8321745 Fix IndexError in free strategy when hosts become unreachable (#87037) (#87089)
* Fix IndexError in free strategy when hosts become unreachable

Fixes an IndexError crash in the free strategy plugin when hosts
become unreachable during playbook execution.

The bug occurred when:
- last_host index persists across outer loop iterations
- hosts_left is regenerated each iteration via get_hosts_left()
- Some hosts become unreachable between iterations
- hosts_left shrinks but last_host retains its previous value
- Accessing hosts_left[last_host] raises IndexError

The fix adds a bounds check after regenerating hosts_left to reset
last_host to 0 if it's out of bounds. This preserves the round-robin
fairness algorithm while preventing the IndexError.

Assisted-by: Claude Sonnet 4.5 <noreply@anthropic.com>

* integration test

* review comment fixes

* ci_complete

(cherry picked from commit 08a71d148e)
2026-06-10 13:49:43 -05:00
5ae948f7e9 [stable-2.21] Fix CVE-2026-11332 - prevent role requirements from configuring git (#87078)
* 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:33 -05:00
Abhijeet KasurdeandGitHub 6a5b9c173c [stable-2.21] config: Use correct key for inject_invocation (#87000) (#87064)
* inject_invocation inadvertently used 'interpreter_python' key
  in config file instead 'inject_invocation'.

Fixes: #86999
(cherry picked from commit 09f1ac4)

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2026-06-08 14:32:02 -05:00
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