Commit Graph
55392 Commits
Author SHA1 Message Date
Jordan BoreanandGitHub eda1383da7 Remove deprecation marker that has been actioned (#85812) 2025-09-09 06:51:21 +10:00
Jordan BoreanandGitHub 250610b924 Remove tarfile data_filter check (#85808)
Removes the now uneeded tarfile check for data_filter now that our
minimum Python version on the controller is 3.12 and guarantees it will
be present.
2025-09-09 04:30:54 +10:00
Jordan BoreanandGitHub aad9fbd4f5 Windows async - handle trailing junk output (#85820)
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.
2025-09-09 04:30:38 +10:00
Matt MartzandGitHub df1da0419e Remove duplicate future import (#85824) 2025-09-08 12:26:47 -05:00
Abhijeet KasurdeandGitHub 1cd4369815 fetch_file: add ca_path and cookies parameters (#85187)
* 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

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2025-09-08 14:44:17 +00:00
Martin KrizekandGitHub 065f202d30 Remove (de)serialize methods (#85724)
* move task specific from_attrs to Task
* Keep deserialize on PC, add tests
2025-09-08 09:24:08 -05:00
Patrick KingstonandGitHub 36f00cdf1a Expand integration test coverage for deb822_repository module
PR #85586
2025-09-08 15:41:22 +02:00
Abhijeet KasurdeandGitHub 975f60ebf9 encrypt: Remove deprecated passlib_or_crypt API (#85506)
Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2025-09-05 22:19:53 +00:00
Abhijeet KasurdeandGitHub a805356358 include_vars: Code cleanup and integration tests (#85292)
* Updated docs
* Removed stale code
* Added integration tests for better coverage

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2025-09-05 20:18:26 +00:00
Matt ClayandGitHub a25fd1021a ansible-test - Fix traceback on missing tmp dir (#85814) 2025-09-05 18:15:43 +00:00
Jordan BoreanandGitHub f29d432c69 powershell - remove quoting logic (#85781)
Attempts to simplify the PowerShell code and special edge cases that
removes quotes from a value like a src or destination path on Windows
hosts. This should not be needed as paths should not be quoted when it
comes to this section of the code.

ci_complete
2025-09-05 11:21:58 +10:00
Jordan BoreanandGitHub a345a404e0 shell - deprecates the wrap_for_exec API (#85782)
Deprecates the function `wrap_for_exec` on shell plugins. This is to
simplify the API and remove unecessary components that should live
elsewhere or have a better and more flexible API.
2025-09-05 11:21:18 +10:00
Jordan BoreanandGitHub 3582997698 Remove deprecated vars plugin fallback (#85809)
* Remove deprecated vars plugin fallback

Removes the vars plugin `get_host_vars` and `get_group_vars` fallback
which was deprecated.

* Remove integration tests for removed feature
2025-09-05 01:09:02 +00:00
Jordan BoreanandGitHub 94c78cb38f Removed deprecated DEFAULT_TRANSPORT smart option (#85810)
* Removed deprecated DEFAULT_TRANSPORT smart option

Removes the logic for handling `DEFAULT_TRANSPORT` set to `smart`.

* Remove unused import
2025-09-05 10:58:04 +10:00
Matt MartzandGitHub c59db5349e Add typing to to_text and to_bytes, improve typing and type juggling in DataLoader (#85746) 2025-09-04 18:57:35 -05:00
Felix FonteinandGitHub 4209d714db validate-modules and return fragments: fix bug in markup check, fix bug in missing doc fragment check, add tests (#85638)
* Prevent crashing on invalid structure.

* Also process return doc fragments.

* Fix handling of missing doc fragments.
2025-09-03 21:52:22 +00:00
Felix FonteinandGitHub 4c27ccf8f4 default callback: allow to configure indentation (#85497)
* Comment on PyYAML's behavior if indentation is set to 1, or to 10+.
2025-09-03 21:17:50 +00:00
Abhijeet KasurdeandGitHub d93f63ecfb apt_repository: Use correct debug method (#85786)
* Use self.module.debug method instead of non-existent
  self.debug method

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2025-09-02 16:09:32 -07:00
Sloane HertelandGitHub 0ed37ca899 setup - add logical volume facts scoped by volume group (#85705)
Add an 'lvs' key to each value in ansible_facts['vgs'] to support extracting all logical volume facts.

Add note to consider deprecating ansible_facts['lvs'] in a future release since it is misleading if any volume groups have identical logical volume names.

Fixes #85632
2025-09-02 13:30:03 -04:00
Abhijeet KasurdeandGitHub 7b1644e0b3 dnf: Check if installroot is directory or not (#85748)
* dnf: Check if installroot is directory or not

* dnf library creates installroot if it is missing.
  check if installroot is directory or not.

Fixes: #85680

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2025-09-02 11:11:30 -04:00
Abhijeet KasurdeandGitHub a8dc3fae1e cron: misc fixes (#85733)
* removed elif in when return is used
* removed redundant module.exit_json

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2025-09-02 11:08:05 -04:00
Matt ClayandGitHub be9e57366b ansible-test - Update Ansible Core CI auth (#85717)
Implement new authentication methods for accessing the Ansible Core CI service.
2025-08-29 15:22:09 -07:00
Matt ClayandGitHub e8a3be9de5 ansible-test - Update sanity test and coverage requirements (#85761)
* ansible-test - Update sanity test requirements

* ansible-test - Update coverage to 7.10.5
2025-08-28 17:50:05 +00:00
Martin KrizekandGitHub 6976e13075 ternary: evaluate values lazily (#85752)
Fixes #85743
2025-08-28 09:11:09 +02:00
b3ef4f7671 sanity: warn on ansible.module_utils.six imports (#85651)
Co-authored-by: Matt Clay <matt@mystile.com>
2025-08-28 08:03:48 +02:00
Martin KrizekandGitHub 3ec07418aa ansible-doc: remove displaying role attributes (#85725) 2025-08-27 08:05:11 +02:00
Trident101andGitHub 14115afdb2 Remove excessive apostrophe (#85710)
Change:
The pkg_info‘ option was added in version 2.13.

To:
The pkg_info option was added in version 2.13.
2025-08-26 17:18:29 +02:00
Martin KrizekandGitHub 5e78bc8eda vault/unvault filters: remove deprecated vaultid parameter (#85744) 2025-08-26 15:11:57 +02:00
Matt ClayandGitHub 7b598f3fc9 CI - Add missing args to generic.sh (#85737) 2025-08-25 22:41:04 +00:00
Brian CocaandGitHub 534b8c225a vars deprecation (#85673)
internal 'vars' dict cache has not been used for long time, but kept since we could not deprecate and some users had found it
2025-08-22 18:31:46 -04:00
Brian CocaandGitHub 931c923e0e Deprecate defaulting to inject (#85323)
INJECT_FACTS_AS_VARS config deprecate default of true
2025-08-22 15:54:45 -04:00
Brian CocaandGitHub 75ad1f8d6a tags warn wwhen using reserved tags (#85631) 2025-08-22 15:35:09 -04:00
8b6446f2d5 Deprecate hash_params (#85630)
we stopped using it long ago, no plugin should be using it either, but JIC deprecate

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
2025-08-21 16:56:16 -04:00
Martin KrizekandGitHub c5ddc93767 Expose ansible_failed_task in rescue for explicit flush_handlers (#85687)
Fixes #85682
2025-08-19 11:29:50 -04:00
b1fc98c8ad Include result origin in broken conditional message instead of result (#85695)
Co-authored-by: Matt Clay <matt@mystile.com>
2025-08-18 22:35:39 +00:00
558676fcdc Fix marker handling in templating (#85690)
* allow markers to pass through template lookup
* avoid tripping markers within Jinja generated code

Co-authored-by: Matt Clay <matt@mystile.com>
2025-08-18 13:04:23 -07:00
3518d48146 ensure undefined marker access on Jinja getattr->getitem fallback (#85688)
Co-authored-by: Matt Clay <matt@mystile.com>
2025-08-18 11:42:15 -07:00
Matt DavisandGitHub 0467e1eaa9 add known_issues for Jinja set/with (#85677) 2025-08-15 22:37:40 +00:00
Matt DavisandGitHub 5345ac9911 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
2025-08-15 15:13:10 -07:00
Abhijeet KasurdeandGitHub 603dd2d793 test: Remove redundant Python 3 condition (#85664)
Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2025-08-15 12:24:33 -07:00
18289c403d Blockinfile - Add new module option - 'encoding' (#85291)
Signed-off-by: Ketan Kelkar <ktnklkr@gmail.com>
Signed-off-by: Yogesh Rana <Yogesh.Rana@ibm.com>
Co-authored-by: Yogesh Rana <Yogesh.Rana@ibm.com>
Co-authored-by: Yogesh Rana <36674300+yrana17@users.noreply.github.com>
Co-authored-by: Matt Martz <matt@sivel.net>
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
2025-08-14 16:16:53 -05:00
Matt DavisandGitHub e3c9908679 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
2025-08-13 22:05:01 +00:00
Matt ClayandGitHub 76748b8478 Fix filter plugin result processing (#85653) 2025-08-13 14:20:11 -07:00
Matt ClayandGitHub 00fe38215c Fix slicing of tuples in templating (#85608)
* Fix slicing of tuples in templating

* Improve lazy container test coverage
2025-08-12 23:57:19 +00:00
4cb5fe44b6 Lineinfile - Add new module option - 'encoding' (#84999)
Signed-off-by: Ketan Kelkar <ktnklkr@gmail.com>
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
Co-authored-by: Matt Martz <matt@sivel.net>
2025-08-12 15:37:33 -05:00
Abhijeet KasurdeandGitHub 90f62f3fdf regex: validate input before processing (#85629)
* Validated user input for match_type before processing
* added new match_type 'fullmatch'

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2025-08-12 08:01:26 -07:00
0cc771dc3c six cleanup (#85284)
Co-authored-by: Matt Clay <matt@mystile.com>
2025-08-12 12:19:49 +02:00
45d62a726c ansible-doc: show 'notes', 'seealso', and top-level 'version_added' for role entrypoints (#81796)
* Show 'notes', 'seealso', 'requirements', and top-level 'version_added' for role entrypoints.

Co-authored-by: Matt Clay <matt@mystile.com>
2025-08-11 23:07:32 +00:00
Sloane HertelandGitHub 15e9f51e2d Task.resolved_action - fix resolving static actions consistently for callback plugins (#85524)
* 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).
2025-08-11 15:04:54 -04:00
Sloane HertelandGitHub 9a6420e1d5 Fix nested import_tasks when the parent import contains a template (#85599)
* Test nested import_tasks when the parent import contains a template

* Fix templating the parent_include.args
2025-08-08 15:51:00 -04:00