---
title: "ansible-core 2.22.0 Breaking Changes on PyPI | Since.dev"
description: "What each ansible-core release removed, renamed or changed: 21 breaking changes in 4 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/ansible-core
last_updated: 2026-12-04
---

# ansible-core breaking changes

ansible-core 2.22.0 (November 2, 2026) is its newest release with breaking changes, 18 of them. The first: Removed ansible.cli.pull.run_cmd. Every breaking API change we have recorded in ansible-core on PyPI: 21 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.22.1`, released November 30, 2026. [Source repository](https://github.com/ansible/ansible)

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

- From [2.21.3](#v-2-21-3) to [2.22.0](#v-2-22-0): 20 breaking changes in 3 versions.

## ansible-core 2.22.0 breaking changes

ansible-core 2.22.0, released November 2, 2026: 18 breaking changes.

- **Removed** `ansible.cli.pull.run_cmd`  

ansible.cli.pull.run_cmd was removed in ansible-core 2.22.0 [pypi.org](https://pypi.org/project/ansible-core/2.22.0/)
- **Removed** `ansible.cli.pull.safe_output_env`  

ansible.cli.pull.safe_output_env was removed in ansible-core 2.22.0 [pypi.org](https://pypi.org/project/ansible-core/2.22.0/)
- **Removed** `ansible.cli.pull.SAFE_OUTPUT_ENV`  

ansible.cli.pull.SAFE_OUTPUT_ENV was removed in ansible-core 2.22.0 [pypi.org](https://pypi.org/project/ansible-core/2.22.0/)
- **Removed** `ansible.module_utils.urls.set_multipart_encoding`  

ansible.module_utils.urls.set_multipart_encoding was removed in ansible-core 2.22.0 [pypi.org](https://pypi.org/project/ansible-core/2.22.0/)
- **Removed** `ansible.modules.uri.NO_MODIFY_KEYS`  

ansible.modules.uri.NO_MODIFY_KEYS was removed in ansible-core 2.22.0 [pypi.org](https://pypi.org/project/ansible-core/2.22.0/)
- **Removed** `ansible.modules.uri.prepare_multipart`  

ansible.modules.uri.prepare_multipart was removed in ansible-core 2.22.0 [pypi.org](https://pypi.org/project/ansible-core/2.22.0/)
- **Removed** `ansible.modules.uri.sanitize_keys`  

ansible.modules.uri.sanitize_keys was removed in ansible-core 2.22.0 [pypi.org](https://pypi.org/project/ansible-core/2.22.0/)
- **Removed** `ansible.plugins.action.fetch.AnsibleActionSkip`  

ansible.plugins.action.fetch.AnsibleActionSkip was removed in ansible-core 2.22.0 [pypi.org](https://pypi.org/project/ansible-core/2.22.0/)
- **Signature changed** `ansible.cli.doc.get_docstring`  

Was def get_docstring(filename, fragment_loader, verbose=False, ignore_errors=False, collection_name=None, is_module=None, plugin_type=None); now def get_docstring(filename, fragment_loader, verbose=False, ignore_errors=False... [pypi.org](https://pypi.org/project/ansible-core/2.22.0/)
- **Signature changed** `ansible.executor.process.worker.WorkerProcess.__init__`  

Was def \_\_init\_\_(self, \*, final_q: FinalQueue, task_vars: dict, host: Host, task: Task, play_context: PlayContext, loader: DataLoader, variable_manager: VariableManager, shared_loader_obj: types.SimpleNamespace, worker_id: int, cliargs... [pypi.org](https://pypi.org/project/ansible-core/2.22.0/)
- **Signature changed** `ansible.galaxy.collection.FilesManifestType`  

Was FilesManifestType; now class FilesManifestType(t.TypedDict). [pypi.org](https://pypi.org/project/ansible-core/2.22.0/)
- **Signature changed** `ansible.module_utils.common.collections.ImmutableDict`  

Was class ImmutableDict(Hashable, Mapping); now class ImmutableDict(\_c.Hashable, \_c.Mapping\[\_KT, \_VT\], \_t.Generic\[\_KT, \_VT\]). [pypi.org](https://pypi.org/project/ansible-core/2.22.0/)
- **Signature changed** `ansible.module_utils.common.network.is_mac`  

Was def is_mac(mac_address); now def is_mac(mac_address, \*, strict=False). [pypi.org](https://pypi.org/project/ansible-core/2.22.0/)
- **Signature changed** `ansible.modules.git.switch_version`  

Was def switch_version(git_path, module, dest, remote, version, verify_commit, depth, gpg_allowlist); now def switch_version(git_path, module, dest, remote, version, verify_commit, depth, gpg_allowlist, force=False). [pypi.org](https://pypi.org/project/ansible-core/2.22.0/)
- **Signature changed** `ansible.plugins.filter.core.subelements`  

Was def subelements(obj, subelements, skip_missing=False); now def subelements(obj, subelement_obj, skip_missing=False). [pypi.org](https://pypi.org/project/ansible-core/2.22.0/)
- **Signature changed** `ansible.utils.cmd_functions.run_cmd`  

Was def run_cmd(cmd, live=False, readsize=10); now def run_cmd(cmd, live=Sentinel, readsize=10). [pypi.org](https://pypi.org/project/ansible-core/2.22.0/)
- **Signature changed** `ansible.utils.context_objects.ImmutableDict`  

Was class ImmutableDict(Hashable, Mapping); now class ImmutableDict(\_c.Hashable, \_c.Mapping\[\_KT, \_VT\], \_t.Generic\[\_KT, \_VT\]). [pypi.org](https://pypi.org/project/ansible-core/2.22.0/)
- **Signature changed** `ansible.utils.plugin_docs.get_docstring`  

Was def get_docstring(filename, fragment_loader, verbose=False, ignore_errors=False, collection_name=None, is_module=None, plugin_type=None); now def get_docstring(filename, fragment_loader, verbose=False, ignore_errors=False... [pypi.org](https://pypi.org/project/ansible-core/2.22.0/)

## ansible-core 2.21.5 breaking changes

ansible-core 2.21.5, released October 5, 2026: 1 breaking change.

- **Removed** `ansible.cli.scripts.ansible_connection_cli_stub.makedirs_safe`  

ansible.cli.scripts.ansible_connection_cli_stub.makedirs_safe was removed in ansible-core 2.21.5 [pypi.org](https://pypi.org/project/ansible-core/2.21.5/)

## ansible-core 2.21.4 breaking changes

ansible-core 2.21.4, released September 8, 2026: 1 breaking change.

- **Removed** `ansible.plugins.lookup.url.to_native`  

ansible.plugins.lookup.url.to_native was removed in ansible-core 2.21.4 [pypi.org](https://pypi.org/project/ansible-core/2.21.4/)

## ansible-core 2.21.3 breaking changes

ansible-core 2.21.3, released August 10, 2026: 1 breaking change.

- **Signature changed** `ansible.plugins.callback.oneline.CallbackModule.__init__`  

Was def \_\_init\_\_(self, \*args, \*\*kwargs); now def \_\_init\_\_(self, display: Display | None = None, options: dict\[str, t.Any\] | None = None) -> None. [pypi.org](https://pypi.org/project/ansible-core/2.21.3/)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
