Commit Graph
55115 Commits
Author SHA1 Message Date
Matt DavisandGitHub 735f238853 New release v2.19.4rc1 (#86094) v2.19.4rc1 2025-10-29 20:01:58 +00:00
Sloane HertelandGitHub 1cec559552 Task.resolved_action - fix resolving static actions consistently for callback plugins (#85524) (#85646)
* Resolve static actions when the FQCN is already known or demanded by a callback plugin

shorthand syntax (e.g. "- ping:") is resolved by ModuleArgsParser

action/local_action syntax (e.g. "- action: ping") is resolved on demand

* Emit a warning if a callback plugin accesses the property when it's None. This is expected if action/local_action is a template and a callback plugin uses this value too early (like in v2_playbook_on_task_start) or late (like in v2_runner_on_ok for a task with a loop).

(cherry picked from commit 15e9f51e2d)
2025-10-29 11:57:02 -07:00
Brian CocaandGitHub 0e82bdb5e5 option deprecations show alternatives (#86032) (#86068)
Give users a helpful hint on what to do to address the deprecation

(cherry picked from commit 516a114ef6)
2025-10-29 11:22:27 -07:00
Abhijeet KasurdeandGitHub 153ecb2b8e [stable-2.19] package_facts: typecast bytes to string while returning facts (#85939) (#86047)
Fixes: #85937
(cherry picked from commit ef53d63)

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2025-10-29 11:21:07 -07:00
eb67bba287 config lookup, fix 'show_origin' and variables (#85356) (#86042)
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:56 -07:00
b104a05792 [stable-2.19] Remove AddType warning for cleanup (#86029) (#86038)
* 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:22 -07:00
Martin KrizekandGitHub 33ee48c590 [stable-2.19] Avoid the ssh-agent exiting before tests end (#85979) (#86007)
There were couple of occurrences where the hard 30 seconds limit on
running ssh-agent was not enough for the test to run and the ssh-agent
was killed resulting in the test failing with "Connection refused". This
change just lets the agent run in the background and kills it
manually after the tests finish.
(cherry picked from commit 05d5b0f168)
2025-10-29 11:13:27 -07:00
e93bc92d97 Fix psrp - ReadTimeout exceptions now mark host as unreachable (#85974) (#85994)
* psrp - ReadTimeout exceptions now mark host as unreachable

* add try to _exec_psrp_script

* fix indent E111

* update raise format

switch to raise Exception from e



---------


(cherry picked from commit 9fcf1f7c58)

Co-authored-by: Michał Gąsior <rogacz@gmail.com>
2025-10-29 11:12:21 -07:00
sivel / Matt MartzandGitHub b09dfd6316 [stable-2.19] Fix signal propagation (#85907) (#85984)
(cherry picked from commit 5a9afe4)
2025-10-29 11:12:00 -07:00
David ShrewsburyandGitHub 37c3e4243a Fix flakey get_url test (#85953) (#85958)
(cherry picked from commit feda8fc564)
2025-10-29 11:11:34 -07:00
Martin KrizekandGitHub 4fd2954337 [stable-2.19] import_tasks processing closer to include_tasks (#85877) (#85933)
Fixes #69882
Closes #83853
Fixes #85855
Fixes #85856
(cherry picked from commit c3f87b31d1)
2025-10-29 11:10:41 -07:00
Martin KrizekandGitHub a49f7a8fe5 [stable-2.19] Don't special case implicit meta tasks when filtering on tags (#85805) (#85938)
* Don't special case implicit meta tasks when filtering on tags

Fixes #85475
(cherry picked from commit 313c6f6b4d)
2025-10-29 11:09:53 -07:00
81d883687e Make sure ansible-doc doesn't crash when scanning collections whose path contains ansible_collections twice (#85361) (#85930)
Ref: https://github.com/ansible/ansible/issues/84909#issuecomment-2767335761



(cherry picked from commit c6d8d206af)

Co-authored-by: s-hertel <19572925+s-hertel@users.noreply.github.com>
Co-authored-by: Brian Coca <bcoca@users.noreply.github.com>
2025-10-29 11:01:40 -07:00
sivel / Matt MartzandGitHub 41ac662dec Update Ansible release version to v2.19.3.post0. (#85952) 2025-10-06 19:07:13 +00:00
sivel / Matt MartzandGitHub 81b8229057 New release v2.19.3 (#85949) v2.19.3 2025-10-06 12:22:06 -05:00
Matt DavisandGitHub 73c439cb75 Update Ansible release version to v2.19.3rc1.post0. (#85925) 2025-09-29 23:33:22 +00:00
Matt DavisandGitHub cd95e0ff4b New release v2.19.3rc1 (#85923) v2.19.3rc1 2025-09-29 22:11:25 +00:00
Brian CocaandGitHub 06900bbbac script inventory plugin correct error message (#85765) (#85868)
type was reflecting 'converted' type, not 'pre conversion' of the data
now message points at specific data keys
add deprecation tests

(cherry picked from commit c87dc6ed7d)
2025-09-29 13:19:39 -07:00
Sloane HertelandGitHub 3f7210d00a Fix ansible-doc -l/-F/--metadata-dump for relative imports in filter/test plugins (#85801) (#85860)
* Add test for sidecar documentation for filter plugin in a subdirectory

Fix ansible-doc --list/--list_files/--metadata-dump for relative imports in nested filter/test plugin files

(cherry picked from commit 5e8815b823)
2025-09-29 13:16:30 -07:00
Jordan BoreanandGitHub 60fe03290f Windows async - handle trailing junk output (#85820) (#85829)
Add handling for when a PowerShell module emits more than just the
module result JSON. The behaviour reflects the Python async wrapper
where trailing data after the module result will emit a warning.

(cherry picked from commit aad9fbd4f5)
2025-09-29 13:15:24 -07:00
Abhijeet KasurdeandGitHub d09ee36b8f [stable-2.19] fetch_file: add ca_path and cookies parameters (#85187) (#85821)
* Added ca_path and cookies parameter arguments to fetch_file method
  to specify CA path and Cookies to fetch file from URL. These parameters
  are already supported by fetch_url.

Fixes: #85172
(cherry picked from commit 1cd4369)

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2025-09-29 13:14:05 -07:00
🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко)andGitHub 235e6a8cf6 [stable-2.19] 🧪 Pin codecov-cli deptree used in AZP (#85898)
PR #85888

`codecov-cli == 11.0.3` allows `click == 8.3.0` in its deps but the latter causes commit auto-discovery breakage in the former. With https://github.com/getsentry/prevent-cli/pull/95, `codecov-cli == 11.2.3` excludes this version so this patch updates the requirement to that.

To prevent this from happening again, the change also makes use of a pip constraint file that pins the entire dependency tree to concrete versions. The constraint file is managed by `pip-tools`.

Refs:
* https://github.com/getsentry/prevent-cli/pull/95
* https://github.com/pallets/click/issues/3066

ci_coverage
ci_complete
(cherry picked from commit 1e572ba5cc)
2025-09-29 08:48:29 -07:00
a7eee1536f [stable-2.19] Prevent IO capture hang/loss in basic.run_command (#85869) (#85891)
* Prevent run_command output truncation or hang

In cases when the selector used to monitor stdout/stderr activates without
data ready to read (a rare but normal condition), a read from a non-blocking
FD can return `None`, which was being conflated with an empty read (EOF)
condition. This caused the selector to be unregistered prematurely,
sometimes resulting in truncated output or hangs. `None` read results
are now excluded from EOF conditions.

* add changelog

---------
(cherry picked from commit 79ddee1)

Co-authored-by: Chris Meyers <chrismeyersfsu@users.noreply.github.com>
Co-authored-by: Matt Davis <nitzmahone@redhat.com>
2025-09-23 14:59:28 -05:00
Matt ClayandGitHub 423032930b [stable-2.19] Move display internals into _internal (#85889) (#85896)
(cherry picked from commit 58bad71859)
2025-09-22 17:56:17 -07:00
Matt DavisandGitHub 7ff2307dee Update Ansible release version to v2.19.2.post0. (#85826) 2025-09-08 19:02:56 +00:00
Matt ClayandGitHub ca99cc7e55 New release v2.19.2 (#85822) v2.19.2 2025-09-08 18:08:07 +00:00
Matt DavisandGitHub cc342f6f2f Update Ansible release version to v2.19.2rc1.post0. (#85791) 2025-09-04 15:57:46 +00:00
Matt DavisandGitHub 24c92b2d24 New release v2.19.2rc1 (#85788) v2.19.2rc1 2025-09-02 17:09:11 -07:00
Martin KrizekandGitHub 764070de69 [stable-2.19] Expose ansible_failed_task in rescue for explicit flush_handlers (#85687) (#85707)
Fixes #85682

(cherry picked from commit c5ddc93767)
2025-09-02 16:20:30 -07:00
Martin KrizekandGitHub 9aea625f63 [stable-2.19] ternary: evaluate values lazily (#85752) (#85753)
Fixes #85743
(cherry picked from commit 6976e13075)
2025-09-02 16:06:43 -07:00
Matt ClayandGitHub f2a4eb74ec [stable-2.19] ansible-test - Update Ansible Core CI auth (#85717) (#85768)
Implement new authentication methods for accessing the Ansible Core CI service.

(cherry picked from commit be9e57366b)
2025-08-29 21:00:18 -07:00
Matt ClayandGitHub 8203ef0fe0 [stable-2.19] CI - Add missing args to generic.sh (#85737) (#85738)
(cherry picked from commit 7b598f3fc9)
2025-08-25 17:05:54 -07:00
Matt MartzandGitHub adb3c6fae5 Update Ansible release version to v2.19.1.post0. (#85731) 2025-08-25 19:54:53 +00:00
Matt MartzandGitHub 43cac0b1d2 New release v2.19.1 (#85730) v2.19.1 2025-08-25 14:16:05 -05:00
Matt DavisandGitHub 695afe4fe7 Update Ansible release version to v2.19.1rc1.post0. (#85699) 2025-08-19 00:33:33 +00:00
Matt DavisandGitHub 7fc339e4aa New release v2.19.1rc1 (#85698) v2.19.1rc1 2025-08-18 23:53:04 +00:00
875b258977 Include result origin in broken conditional message instead of result (#85695) (#85697)
(cherry picked from commit b1fc98c8ad)

Co-authored-by: Matt Clay <matt@mystile.com>
2025-08-18 23:16:56 +00:00
Abhijeet KasurdeandGitHub 8849bd776b [stable-2.19] service_facts: Handle KeyError while processing service name (#85572) (#85647)
* service_facts: Handle KeyError while processing service name

As a part of follow up review,

* Handle KeyError with exception handling
* Warn user about the missing service name in the given service details
(cherry picked from commit 9ed7164)

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2025-08-18 15:34:42 -07:00
8d26bbf3f7 [stable-2.19] Fix marker handling in templating (#85690) (#85694)
* allow markers to pass through template lookup
* avoid tripping markers within Jinja generated code

(cherry picked from commit 558676fcdc)

Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>
2025-08-18 21:20:37 +00:00
a00261b0ec [stable-2.19] ensure undefined marker access on Jinja getattr->getitem fallback (#85688) (#85691)
(cherry picked from commit 3518d48146)

Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>
2025-08-18 20:41:14 +00:00
Sloane HertelandGitHub 6404fdce45 Fix nested import_tasks when the parent import contains a template (#85599) (#85636)
* Test nested import_tasks when the parent import contains a template

* Fix templating the parent_include.args

(cherry picked from commit 9a6420e1d5)
2025-08-18 10:00:15 -07:00
Matt DavisandGitHub 2dcd35b692 [stable-2.19] Backward-compatible None handling in template concat and argspec str (#85652) (#85663)
* Backward-compatible None handling in template concat and argspec str (#85652)

* templating coerces None to empty string on multi-node result

* avoid simple cases of embedded `None` in multi-node string concatenated template results ala <=2.18
* single-node template results preserve NoneType

* add None->empty str equivalency to argspec validation

* fix integration tests
* remove conversion error message check from apt_repository test
* remove error message check on `None` value for required str argspec in roles_arg_spec test (now logically-equivalent to empty string)

* explanatory comment for None->empty str coalesce

(cherry picked from commit e3c9908679)

* eliminate None template nodes in _flatten_nodes (#85676)

* defers value or concat choice until Nones are gone
* fixes None -> empty string for TemplateModule cases
* add tests

(cherry picked from commit 5345ac9911)
2025-08-18 09:58:32 -07:00
Abhijeet KasurdeandGitHub e24bc689a3 [stable-2.19] test: Remove redundant Python 3 condition (#85664) (#85675)
(cherry picked from commit 603dd2d)

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2025-08-15 15:14:29 -07:00
Matt ClayandGitHub 3c1e46435b [stable-2.19] Fix slicing of tuples in templating (#85608) (#85661)
* Fix slicing of tuples in templating

* Improve lazy container test coverage
(cherry picked from commit 00fe38215c)
2025-08-15 12:24:39 -07:00
Matt ClayandGitHub 0718473815 [stable-2.19] Fix filter plugin result processing (#85653) (#85662)
(cherry picked from commit 76748b8478)
2025-08-15 12:22:27 -07:00
db4973572a Add temporary module result serialization hook (#85609) (#85621)
* Add temporary module result serialization hook

* Sanity test fix

---------


(cherry picked from commit faf86ca2b3)

Co-authored-by: Matt Clay <matt@mystile.com>
2025-08-05 14:12:47 -05:00
Matt DavisandGitHub 99d701ccf9 default _ansible_tracebacks_for to [] when not specified (#85427) (#85453)
* eases module unit tests that aren't using our fixture

(cherry picked from commit 6b347bfbf7)
2025-08-04 10:43:18 -05:00
Brian CocaandGitHub ddf2bd773c meta: clear_host_errors, clarify what this applies to (#85463) (#85465)
* meta: clear_host_errors, clarify what this applies to

It clears host for selection, but does not change state in the current iterator.

* also update example

(cherry picked from commit 319dca2ea8)
2025-08-04 10:13:51 -05:00
5a20b991d4 Rewrite exception key on failed_when: false (#85516) (#85517)
* Prevents callback handle_exception from displaying the captured exception when the task is not failed.
* Added tests.


(cherry picked from commit 2fbd7c114e)

Co-authored-by: Matt Clay <matt@mystile.com>
2025-08-04 10:13:42 -05:00
Brian CocaandGitHub 68378c85cb plugin config options are now correctly fetched with origin (#85488) (#85525)
* also update callbcacks, since they override these functions
due to backwards compat _options being taken for CLI

(cherry picked from commit 19f9c66004)
2025-08-04 10:13:32 -05:00