| 1 |
ancestor: 2.21.0 |
| 2 |
releases: |
| 3 |
2.22.0b1: |
| 4 |
changes: |
| 5 |
breaking_changes: |
| 6 |
- AnsibleModule - ``log()`` and the automatic invocation logging now only redact |
| 7 |
values registered as secrets (such as ``no_log`` option values) and no longer |
| 8 |
apply the ``heuristic_log_sanitize()`` heuristics, for example ``user:password@host`` |
| 9 |
in URLs is no longer rewritten unless the password is a registered secret. |
| 10 |
``no_log`` and password-like options are logged as ``$REDACTED$`` instead |
| 11 |
of ``NOT_LOGGING_PARAMETER`` or ``NOT_LOGGING_PASSWORD``. |
| 12 |
- AnsibleModule - ``run_command()`` no longer rewrites the ``cmd`` value in |
| 13 |
a failure result to replace password-like arguments (such as ``--password=...``) |
| 14 |
with ``********``, and the ``msg`` value is no longer passed through ``heuristic_log_sanitize()``. |
| 15 |
Registered secrets in these values are still redacted in output. Modules that |
| 16 |
pass a secret on the command line which is not a ``no_log`` option should |
| 17 |
register it with ``ansible.module_utils.secrets.register_secret()``. |
| 18 |
- 'Module options that are marked as ``no_log: true`` will no longer be redacted |
| 19 |
literally as ``"VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"`` in the module result |
| 20 |
and ``invocation.module_args``. Instead, the actual value is registered as |
| 21 |
a secret and is only redacted in generated output, allowing these values to |
| 22 |
be used by subsequent tasks without any loss of data. The value is still redacted |
| 23 |
in callback output and module logging. Playbooks or tests that check for the |
| 24 |
``VALUE_SPECIFIED_IN_NO_LOG_PARAMETER`` placeholder in results should be updated.' |
| 25 |
- ansible-config - all actions now default to ``-t all``, so configuration files |
| 26 |
using sections owned by plugins (for example, ``[ssh_connection]``) are no |
| 27 |
longer reported as unknown sections, and keys within those sections are actually |
| 28 |
validated. Use ``-t base`` to retain the previous behavior (https://github.com/ansible/ansible/issues/86398). |
| 29 |
- uri - response keys are no longer rewritten to strip ``no_log`` values (previously |
| 30 |
done with ``sanitize_keys()``); registered secrets are masked in output instead. |
| 31 |
bugfixes: |
| 32 |
- Add deprecation status to the tree and oneline callback DOCUMENTATION. (https://github.com/ansible/ansible/issues/87020) |
| 33 |
- Fix ``validate_argspec`` when tags are defined on the play. The ``always`` |
| 34 |
tag is only added if the play has no tags. |
| 35 |
- Internal patch framework - Defer failure on missing target patch attribute |
| 36 |
until `is_patch_needed` validator has confirmed that the behavior to be patched |
| 37 |
is present. |
| 38 |
- The user module, now unlinks target ssh key files if they are symlinks to |
| 39 |
avoid overwriting their sources. |
| 40 |
- The user module, will no longer remove existing public key files in check |
| 41 |
mode. |
| 42 |
- '``--start-at-task`` - fix starting at the requested task instead of starting |
| 43 |
at the next block or play. Play level tasks run first. (https://github.com/ansible/ansible/issues/86268)' |
| 44 |
- '``ansible-doc -t filter|test <plugin>`` - remove empty bullet point from |
| 45 |
the description.' |
| 46 |
- ansible-galaxy - Fix attempting to download the collection again if the response |
| 47 |
from the server is shorter than expected, instead of failing due to the mismatched |
| 48 |
artifact hash on the first attempt. (https://github.com/ansible/ansible/pull/86025) |
| 49 |
- ansible-test - Allow root to use sudo on managed Alpine instances. |
| 50 |
- ansible-test - Ensure the bundled debugpy module from VSCode is available |
| 51 |
in the ``--dev-debug-on-demand`` environment. |
| 52 |
- ansible-test - Fix target filtering to preserve user-specified versions that |
| 53 |
are not in the completion configuration. |
| 54 |
- ansible-test - Only add volume bind mount for ``docker.sock`` when using docker |
| 55 |
- ansible-test remote alias - Alias values for ``--controller`` and ``--target`` |
| 56 |
are properly resolved for ``remote``. Previously, remote alias values (e.g. |
| 57 |
``fedora/latest``) resolved to the correct name only for the legacy ``--remote`` |
| 58 |
arg, failing with an unknown image error for the newer args. |
| 59 |
- apt_key module now masks authentication information in all displays and returns |
| 60 |
of uri information. |
| 61 |
- apt_repository - treat a source line whose type is valid but which has fewer |
| 62 |
than two following fields (for example a bare ``deb``) as invalid instead |
| 63 |
of raising an ``IndexError`` while parsing sources.list files. |
| 64 |
- apt_repository - validate the line in sources.list (https://github.com/ansible/ansible/issues/85715). |
| 65 |
- async - fix error message when the async task did not complete within the |
| 66 |
requested time. |
| 67 |
- basic.py - Fix typo in deprecation message for use of the ``get_platform`` |
| 68 |
function. |
| 69 |
- cli - handle empty value for PAGER (https://github.com/ansible/ansible/issues/86898). |
| 70 |
- collection loader - Fix the collection loader logic to correctly return Python |
| 71 |
module when calling ``pkgutil.iter_modules`` with a package that is inside |
| 72 |
a collection path and contains compiled Python extension modules. |
| 73 |
- config - Include the origin in error message indicating an invalid choice |
| 74 |
in a configuration value |
| 75 |
- config - use correct key value for inject_invocation setting (https://github.com/ansible/ansible/issues/86999). |
| 76 |
- delegate_to - reject a literal empty hostname consistently with a template |
| 77 |
that resolves to an empty hostname (https://github.com/ansible/ansible/issues/84332). |
| 78 |
- distribution facts - classify UnionTech OS Server (UOS Server) as ``RedHat`` |
| 79 |
``os_family`` instead of ``Debian``. UOS Server is RPM-based and built on |
| 80 |
top of openAnolis (A version, codename ``kongzi``) or openEuler (E version, |
| 81 |
codename ``fuyu``), and advertises ``PLATFORM_ID="platform:uel*"`` in ``/etc/os-release``. |
| 82 |
The Debian-based Desktop edition is unchanged (https://github.com/ansible/ansible/issues/86957). |
| 83 |
- dnf5 module - Set the dnf ``destdir`` configuration option from ``download_dir`` |
| 84 |
when ``download_only`` is true, as documented. |
| 85 |
- encrypt - fix bcrypt salt string formatting on musl libc by ensuring it is |
| 86 |
always zero-padded to 2 digits (https://github.com/ansible/ansible/issues/87180). |
| 87 |
- free strategy - Fix ``IndexError`` when hosts become unreachable during playbook |
| 88 |
execution (https://github.com/ansible/ansible/issues/87027). |
| 89 |
- free strategy - prevent hanging on skipping a task using ``--step`` (https://github.com/ansible/ansible/issues/86656) |
| 90 |
- get_url module now masks authentication information in all displays and returns |
| 91 |
of uri information. |
| 92 |
- getent - fail with error when service is provided on platforms using busybox |
| 93 |
like alpine (https://github.com/ansible/ansible/issues/85568). |
| 94 |
- git - fix ``force`` parameter to properly preserve local commits when set |
| 95 |
to ``false`` and fail with a clear error message (https://github.com/ansible/ansible/issues/83367) |
| 96 |
- git - remove redundant error checks after `run_command(check_rc=True)` |
| 97 |
- git - use the branch configured in ``.gitmodules`` or the remote HEAD instead |
| 98 |
of hardcoding ``master`` when ``track_submodules=yes`` (https://github.com/ansible/ansible/issues/77691). |
| 99 |
- meta pseudo-action - Fixed callback args passed to ``v2_runner_on_skipped`` |
| 100 |
when any ``meta`` action was skipped by a ``when`` condition; added test coverage. |
| 101 |
A previous regression caused the callback dispatch to be omitted and a warning |
| 102 |
issued. |
| 103 |
- module_utils - ``check_type_int`` now raises the documented ``TypeError`` |
| 104 |
(instead of an uncaught ``OverflowError``) for the string values ``inf``, |
| 105 |
``-inf`` and ``Infinity``, which ``decimal.Decimal`` accepts but cannot be |
| 106 |
converted to an ``int``. |
| 107 |
- module_utils - ``is_netmask`` now rejects non-contiguous netmasks such as |
| 108 |
``255.255.0.255``, where each octet is individually valid but the mask is |
| 109 |
not a contiguous run of network bits followed by host bits (https://github.com/ansible/ansible/pull/87235). |
| 110 |
- module_utils - ``mask_url`` now masks the password in URLs that contain a |
| 111 |
password but no username, such as ``redis://:password@host``, instead of returning |
| 112 |
them unmasked. |
| 113 |
- module_utils - fix module initialization failures on QNX Neutrino 6.5.0 by |
| 114 |
specifying IPv4 stream socket hints in the ``socket.getaddrinfo`` integer-subclass |
| 115 |
compatibility probe (https://github.com/ansible/ansible/issues/87496). |
| 116 |
- module_utils sanitize_keys and remove_value functions now sort their input |
| 117 |
to ensure matching subsets are always obscured. |
| 118 |
- module_utils.urls now all errors mask in line url authentication information. |
| 119 |
- module_utils/basic.py - Fix ``AnsibleModule.run_command()`` to handle ``None`` |
| 120 |
return from non-blocking pipe reads (https://github.com/ansible/ansible/issues/86920). |
| 121 |
- parallel fact gathering - fix hang caused by corrupt async job files. |
| 122 |
- pip - resolve relative virtualenv paths consistently, including when used |
| 123 |
with chdir (https://github.com/ansible/ansible/issues/81522, https://github.com/ansible/ansible/issues/84905). |
| 124 |
- powershell exec_wrapper - fix handling when multiple pwsh executables match |
| 125 |
by selecting the first result (https://github.com/ansible/ansible/issues/87228). |
| 126 |
- rpm_key - Fix module failure when fetching GPG keys from FTP URLs (https://github.com/ansible/ansible/issues/83321). |
| 127 |
- rpm_key - ensure a trailing newline is present on PGP armor data before passing |
| 128 |
it to librpm for parsing, fixing failures on systems where ``pgpParsePkts`` |
| 129 |
requires it (https://github.com/ansible/ansible/issues/87303). |
| 130 |
- rpm_key module now masks authentication information in all displays and returns |
| 131 |
of uri information. |
| 132 |
- serialization - Preserve ``fold`` on tagged ``datetime.time`` and ``datetime.datetime`` |
| 133 |
instances. |
| 134 |
- ssh connection - fix an issue with become when ``sftp_extra_args``/``scp_extra_args`` |
| 135 |
would contain the value of ``ssh_executable`` (https://github.com/ansible/ansible/issues/87272) |
| 136 |
- ssh connection plugin - malformed ``ssh_args``/``ssh_common_args``/``ssh_extra_args`` |
| 137 |
(e.g. a trailing ``-o`` with no value) no longer crash the worker process |
| 138 |
("A worker was found in a dead state"); the ssh client's own error is reported |
| 139 |
instead. |
| 140 |
- ssh-agent - cap agent response size to match OpenSSH limits |
| 141 |
- ssh-agent - fix partial socket reads |
| 142 |
- ssh-agent - fix wire format serialization for zero-length values |
| 143 |
- su become plugin - Add recognition of password failure for BusyBox version |
| 144 |
of ``su``. |
| 145 |
- subelements - fix error message when an empty subelements is provided (https://github.com/ansible/ansible/issues/87398). |
| 146 |
- sudo become plugin is now compatible with sudo-rs (rust implementation). |
| 147 |
- task results - The ``invocation`` item result key omitted from registered |
| 148 |
values for looped task results, unless enabled via ``INJECT_INVOCATION``. |
| 149 |
Previously, it was deleted from registered non-loop results and only available |
| 150 |
to callbacks. |
| 151 |
- tempfile - reject prefix and suffix values that contain path components to |
| 152 |
prevent path traversal. |
| 153 |
- template action - restore ``failed_when`` support when the template source |
| 154 |
file is not found on the controller (https://github.com/ansible/ansible/issues/87491). |
| 155 |
- uri - Enable multipart/form-data requests over 2GB (https://github.com/ansible/ansible/issues/76666) |
| 156 |
- uri module now masks authentication information in all displays and returns |
| 157 |
of uri information. |
| 158 |
- url lookup now masks authentication information in all displays and returns |
| 159 |
of uri information. |
| 160 |
- user - On BusyBox systems, warn when an invalid shell is specified (https://github.com/ansible/ansible/pull/86342) |
| 161 |
- user - fix ``move_home`` on BusyBox/Alpine to move existing home contents |
| 162 |
before rewriting ``/etc/passwd`` (https://github.com/ansible/ansible/pull/87044). |
| 163 |
- user - warn if move_home is true and home directory does not exist (https://github.com/ansible/ansible/issues/37398). |
| 164 |
- wait_for - use ``errno.ENOENT`` symbolic constant instead of hardcoded value |
| 165 |
for improved code portability. |
| 166 |
deprecated_features: |
| 167 |
- AGNOSTIC_BECOME_PROMPT setting, no external tools should need this any more. |
| 168 |
- Deprecate is_module in get_docstring API in favor of passing ``plugin_type='module'``. |
| 169 |
- '``ansible.module_utils.six`` - A runtime deprecation warning is now emitted |
| 170 |
when importing the ``six`` compatibility library, deprecated in ansible-core |
| 171 |
2.21 and planned for removal in ansible-core 2.24 (https://github.com/ansible/ansible/issues/86789). |
| 172 |
|
| 173 |
' |
| 174 |
- action plugins - ``AnsibleActionSkip`` is deprecated and will be removed in |
| 175 |
ansible-core 2.25. A sanity test detects imports of this exception. Return |
| 176 |
a results dict from action plugins and don't include a ``skipped`` key, or |
| 177 |
raise ``AnsibleActionNoCheckMode`` if necessary. |
| 178 |
- ansible.utils.cmd_functions.run_cmd - the ``live`` argument is deprecated |
| 179 |
and will be removed in ansible-core 2.25 because it writes the subprocess |
| 180 |
output directly to stdout/stderr, bypassing the built-in secret masking applied |
| 181 |
to captured output. Callers that need to stream output live should run the |
| 182 |
subprocess themselves and are responsible for masking any secrets. |
| 183 |
- module_utils - the ``heuristic_log_sanitize()`` function in ``ansible.module_utils.basic`` |
| 184 |
is deprecated and will be removed in ansible-core 2.25. Secret values are |
| 185 |
now masked automatically, use functions from the ``ansible.module_utils.secrets`` |
| 186 |
module to handle secrets manually. |
| 187 |
- module_utils - the ``remove_values()`` and ``sanitize_keys()`` functions in |
| 188 |
``ansible.module_utils.common.parameters`` are deprecated and will be removed |
| 189 |
in ansible-core 2.25. Secret values are now masked automatically, use functions |
| 190 |
from the ``ansible.module_utils.secrets`` module to handle secrets manually. |
| 191 |
- task result - Returning ``skipped`` from a module or action plugin is deprecated |
| 192 |
and will be removed in ansible-core 2.25. Use task-level conditionals (``when:``) |
| 193 |
to control execution. |
| 194 |
known_issues: |
| 195 |
- Secret masking - when ``ANSIBLE_DEBUG=1`` is set, the raw stdout and stderr |
| 196 |
of commands executed on the target, including module results, are displayed |
| 197 |
before the secrets contained in the module result have been registered for |
| 198 |
masking. Secrets which are only known to the module, such as ``no_log`` option |
| 199 |
values, may therefore be shown in plaintext in debug output. |
| 200 |
major_changes: |
| 201 |
- Secret masking - Ansible now automatically redacts known secret values from |
| 202 |
the output it generates, such as ``display`` output (including verbose, warning, |
| 203 |
deprecation, and error output), module logging, and task results passed to |
| 204 |
callback plugins. Masking is non-destructive; the real value remains available |
| 205 |
to tasks, conditionals, and registered variables, only the rendered output |
| 206 |
is redacted with ``$REDACTED$``. Secrets shorter than 4 characters are never |
| 207 |
masked, secrets of 4 to 6 characters are only masked when they appear as a |
| 208 |
whole word or when they overlap or are adjacent to another secret, and secrets |
| 209 |
longer than 65536 characters are matched on their first 65536 characters. |
| 210 |
- Secret masking - add the ``ansible.module_utils.secrets`` public API for working |
| 211 |
with secrets manually. It provides ``register_secret`` and ``register_secrets`` |
| 212 |
to register values that should be redacted from masked output, and ``mask_secrets`` |
| 213 |
to redact any registered secrets from a string. The API can be used on the |
| 214 |
controller and in Python modules; the new ``Ansible.Secrets`` C# module_util |
| 215 |
provides the equivalent ``[Ansible.Secrets.SecretMasker]::RegisterSecret()`` |
| 216 |
and ``MaskString()`` methods for PowerShell modules. Secrets registered inside |
| 217 |
a module or worker process are propagated back to the controller so they are |
| 218 |
also masked there. |
| 219 |
- ansible - Add support for Python 3.15. |
| 220 |
- ansible - Drop support for Python 3.12 on the controller. |
| 221 |
- 'callback plugins - callback plugin authors should opt into the new secret |
| 222 |
masking behaviour by setting the class attribute ``ANSIBLE_SUPPORTS_MASKING |
| 223 |
= True``. A callback that sets this receives the unmasked task result and |
| 224 |
must ensure any secrets are redacted before they are written, either by emitting |
| 225 |
output through ``Display`` which masks automatically, or by passing the values |
| 226 |
through ``ansible.module_utils.secrets.mask_secrets()`` before writing them |
| 227 |
elsewhere. Callbacks that do not set the attribute continue to receive task |
| 228 |
results with any registered secrets replaced by ``$REDACTED$``, matching the |
| 229 |
redacted results they receive today. This implicit masking exists only for |
| 230 |
backwards compatibility with existing callbacks and will be removed in a future |
| 231 |
release, at which point all callbacks will receive unmasked results and must |
| 232 |
mask them manually if not using ``Display``. Task-level ``no_log: true`` continues |
| 233 |
to censor the entire result regardless of this attribute.' |
| 234 |
minor_changes: |
| 235 |
- Add new OrderedSet class for situations a unique ordered list is needed |
| 236 |
- Role and play argument spec validation now supports ``no_log``. Variables |
| 237 |
labeled as ``no_log`` are redacted from masked output. (https://github.com/ansible/ansible/issues/84498) |
| 238 |
- Secret masking - add the internal ``_SECRETS_INPUT_FILES`` config option to |
| 239 |
pre-seed values to redact from the output of ``ansible``, ``ansible-playbook``, |
| 240 |
and ``ansible-console``. Each file is YAML or JSON containing a mapping with |
| 241 |
a ``version`` key (currently only ``1``) and a ``secrets`` key listing the |
| 242 |
string values to mask. A file with the executable bit set is run instead of |
| 243 |
read, and its stdout is parsed as the document. |
| 244 |
- 'Secret masking - the following values are now automatically registered as |
| 245 |
secrets and redacted from masked output: vault passwords provided by prompt, |
| 246 |
file, or script; the decrypted plaintext of vault encrypted values and every |
| 247 |
string or numeric value in a vault encrypted vars file; passwords entered |
| 248 |
for ``--ask-pass`` and ``--ask-become-pass``; ``no_log`` module option values; |
| 249 |
the ``become_pass`` option of the ``sudo``, ``su``, and ``runas`` become plugins; |
| 250 |
the ``password``, ``private_key``, and ``private_key_passphrase`` options |
| 251 |
of the ``ssh`` connection plugin; the ``password`` option of the ``winrm`` |
| 252 |
and ``psrp`` connection plugins and the ``certificate_key_password`` option |
| 253 |
of ``psrp``; the ``password`` option of the ``url`` lookup; the values returned |
| 254 |
by the ``password`` and ``unvault`` lookups; the secret passed to the ``vault`` |
| 255 |
and ``unvault`` filters; the user input of the ``pause`` action when ``echo`` |
| 256 |
is ``false``; and values entered for a play ``vars_prompt`` when ``private`` |
| 257 |
is ``true`` (the default).' |
| 258 |
- ansible-galaxy - sort the FILES.json for ansible galaxy build based on name. |
| 259 |
(https://github.com/ansible/ansible/issues/82792). |
| 260 |
- ansible-test - Added a timeout callback that dumps thread stacks when the |
| 261 |
test execution deadline defined by ``ansible-test env --timeout`` is approaching. |
| 262 |
- ansible-test - Generate ``dist_info`` when running tests. |
| 263 |
- ansible-test - Remove support for Windows Server 2016 managed remote. |
| 264 |
- ansible-test - Replace Alpine 3.23 container and remote with 3.24. |
| 265 |
- ansible-test - Replace Fedora 43 container and remote with 44. |
| 266 |
- ansible-test - Replace FreeBSD 14.4 remote with 14.5. |
| 267 |
- ansible-test - Replace FreeBSD 15.0 remote with 15.1. |
| 268 |
- ansible-test - Replace RHEL 10.1 remote with 10.2. |
| 269 |
- ansible-test - Replace RHEL 9.7 remote with 9.8. |
| 270 |
- ansible-test - Replace Ubuntu 22.04 container and remote with 26.04. |
| 271 |
- ansible-test - Update ansible-test utility containers (http-test-container, |
| 272 |
pypi-test-container, ansible-test-utility-container). |
| 273 |
- ansible-test - Update sanity test requirements. |
| 274 |
- ansible-test - Upgrade ``coverage`` for Python 3.10 and later. |
| 275 |
- ansible-test - Upgrade the distro-specific test containers. |
| 276 |
- config - add a ``secret`` boolean keyword to plugin configuration option definitions. |
| 277 |
When set to ``true``, the resolved value of the option is automatically registered |
| 278 |
as a secret for output masking, regardless of the source it was set from (env, |
| 279 |
ini, vars, CLI, or plugin arguments). It is only supported for the ``str``, |
| 280 |
``string``, and ``list`` types (string elements of a list are registered); |
| 281 |
using it with any other type raises an error when the plugin configuration |
| 282 |
is loaded. |
| 283 |
- debugging - Add signal (``USR1``) handler to provide insight into executing |
| 284 |
code stacks (https://github.com/ansible/ansible/issues/84451) |
| 285 |
- distribution facts - add the ``ansible_distribution_cpe_name`` fact, exposing |
| 286 |
the ``CPE_NAME`` published in the os-release file when the distribution provides |
| 287 |
one. |
| 288 |
- dnf - clarify that the ``exclude`` parameter works with all ``state`` values, |
| 289 |
not just ``present`` and ``latest`` (https://github.com/ansible/ansible/issues/87026) |
| 290 |
- dnf5 - clarify that the ``exclude`` parameter works with all ``state`` values, |
| 291 |
not just ``present`` and ``latest`` (https://github.com/ansible/ansible/issues/87026) |
| 292 |
- filter - ``regex_escape`` implement ``re_type=posix_extended`` for POSIX ERE |
| 293 |
literal escaping (https://github.com/ansible/ansible/pull/86949). |
| 294 |
- is_mac - add a ``strict`` keyword-only argument that anchors the validation |
| 295 |
regex with ``\Z`` instead of ``$``, rejecting a MAC address with a trailing |
| 296 |
newline. The default (``strict=False``) preserves the historical behavior |
| 297 |
(https://github.com/ansible/ansible/pull/87420). |
| 298 |
- jsonfile cache plugin - add ``persist_metadata`` option to configure whether |
| 299 |
or not to preserve metadata like deprecation notices. Setting the option to |
| 300 |
``False`` restores the filename and format used prior to ansible-core 2.19. |
| 301 |
- mask_url function in module_utils to allow for masking of auth data embedded |
| 302 |
in urls. |
| 303 |
- module_utils.urls - Added ``is_fetch_success()`` function for protocol-aware |
| 304 |
success detection of ``fetch_url()`` responses. |
| 305 |
- parallel fact gathering - the async wrapper now considers the timeout when |
| 306 |
determining whether to kill the process running the module. Previously, a |
| 307 |
5 second sleep occurred twice before checking if the job had remaining time. |
| 308 |
- psrp connection plugin - Remove explicit error handling support for Windows |
| 309 |
Server 2016. |
| 310 |
- setup module now adds 'by-path' information to device_links. |
| 311 |
- ssh connection plugin - inspect ``SSH_ASKPASS_PROMPT`` in ``SSH_ASKPASS`` |
| 312 |
script for reliability (https://github.com/ansible/ansible/issues/86319) |
| 313 |
- ssh, winrm, and psrp connection plugins - the raw stdout and stderr of executed |
| 314 |
commands are no longer displayed at increased verbosity (``-vvv`` for ``ssh``, |
| 315 |
``-vvvvv`` for ``winrm`` and ``psrp``), only the return code is shown. Module |
| 316 |
output can contain secrets, such as ``no_log`` option values, which are only |
| 317 |
registered for masking once the result has been parsed, so displaying the |
| 318 |
raw output before then could leak them. The raw output is still available |
| 319 |
with ``ANSIBLE_DEBUG=1`` if needed for debugging purposes. |
| 320 |
- task results - Python and Powershell modules do not include the ``invocation`` |
| 321 |
task result key by default. Injection of the ``invocation`` task result key |
| 322 |
for Python and Powershell modules may be enabled with the var-settable ``INJECT_INVOCATION`` |
| 323 |
config item. Most callbacks mask ``invocation`` when displaying a task or |
| 324 |
loop item result. |
| 325 |
- url `multipart/form-data` - Replace Python ``email`` multipart generator with |
| 326 |
custom generator, allowing for binary content without ``Content-Transfer-Encoding`` |
| 327 |
- user - add support for move_home in Alpine Linux (https://github.com/ansible/ansible/issues/85521). |
| 328 |
- validate-modules sanity test - allow lookups to use ``positional`` to mark |
| 329 |
which options are actually positional arguments, similar to test and filter |
| 330 |
plugins (https://github.com/ansible/ansible/pull/86986). |
| 331 |
- windows - Compress input data sent over for module execution to reduce the |
| 332 |
amount of data transferred per module execution. |
| 333 |
- winrm connection plugin - improved error message to include target host when |
| 334 |
stdin transfer fails (https://github.com/ansible/ansible/issues/86749) |
| 335 |
- worker process - When controller and forked child workers must share a TTY, |
| 336 |
the ``WORKER_SESSION_ISOLATION`` config item can be set to ``false`` (via |
| 337 |
variable/config/envvar) to disable forked worker session isolation. |
| 338 |
release_summary: '| Release Date: 2026-09-18 |
| 339 |
|
| 340 |
| `Porting Guide <https://docs.ansible.com/ansible-core/2.22/porting_guides/porting_guide_core_2.22.html>`__ |
| 341 |
|
| 342 |
' |
| 343 |
removed_features: |
| 344 |
- Remove deprecated ``ANSIBLE_CONNECTION_PATH`` option |
| 345 |
- Remove deprecated ``DEFAULT_LIBVIRT_LXC_NOSECLABEL`` option. |
| 346 |
- url/uri - remove deprecated use of ``yes``/``no`` values for the ``follow_redirects`` |
| 347 |
option (https://github.com/ansible/ansible/issues/86790) |
| 348 |
- yum_repository - Removed deprecated parameters. |
| 349 |
security_fixes: |
| 350 |
- ansible-galaxy install - Ensure role requirements are passed as positional |
| 351 |
arguments to :command:`git clone`. Previously, a malicious role author could |
| 352 |
inject arbitrary git configuration in role dependencies. (CVE-2026-11332) |
| 353 |
- 'psrp - Do not log raw stdout/stderr on verbosity 5 when task has ``no_log: |
| 354 |
true`` set' |
| 355 |
- 'winrm - Do not log raw stdout/stderr on verbosity 5 when task has ``no_log: |
| 356 |
true`` set' |
| 357 |
codename: Thank You |
| 358 |
fragments: |
| 359 |
- 2.22.0b1_summary.yaml |
| 360 |
- 77691-git-track-submodules-branch.yml |
| 361 |
- 81522-pip-virtualenv-relative-chdir.yml |
| 362 |
- 82792-sort-entries-in-FILES_json.yml |
| 363 |
- 83321-rpm-key-ftp-support.yml |
| 364 |
- 83367-git-force-local-commits.yml |
| 365 |
- 84332-delegate-to-empty-host.yml |
| 366 |
- 84451-debug-stack-output.yml |
| 367 |
- 85568-getent-service-error.yml |
| 368 |
- 86243-user-busybox-shell-warn.yml |
| 369 |
- 86319-ssh_askpass_prompt.yml |
| 370 |
- 86398-ansible-config-validate-default-all.yml |
| 371 |
- 86656-fix-step-in-free-strat.yml |
| 372 |
- 86749-winrm-stdin-error-message.yml |
| 373 |
- 86790-remove-deprecated-vals-follow-redirects.yml |
| 374 |
- 86920-fix-run-command-none-read.yml |
| 375 |
- 86937-git-rm-redundant-err-checks.yml |
| 376 |
- 86957-uniontechos-server-redhat-family.yml |
| 377 |
- 86986-validate-modules-positional-lookup.yml |
| 378 |
- 87026-clarify-dnf-exclude-docs.yml |
| 379 |
- 87027-free-strategy-indexerror.yml |
| 380 |
- 87044-user-alpine-move-home-ordering.yml |
| 381 |
- 87087-wait_for-errno-constant.yml |
| 382 |
- 87180-crypt-fixes.yml |
| 383 |
- 87235-is_netmask-contiguous.yml |
| 384 |
- 87272-ssh-connection-escalation.yml |
| 385 |
- 87304-rpm_key-armor-trailing-newline.yml |
| 386 |
- 87420-is_mac-trailing-newline.yml |
| 387 |
- 87491-template-failed-when-missing-src.yml |
| 388 |
- 87498-fix-getaddrinfo-patch-detection.yml |
| 389 |
- agnostic_deprecation.yml |
| 390 |
- alpine_user_mod.yml |
| 391 |
- ansible-doc-jinja2-synopsis.yml |
| 392 |
- ansible-galaxy-retry-IncompleteRead-download.yml |
| 393 |
- ansible-test-alpine.yml |
| 394 |
- ansible-test-container-options-docker-sock.yml |
| 395 |
- ansible-test-container-update.yml |
| 396 |
- ansible-test-coverage.yml |
| 397 |
- ansible-test-dist-info.yml |
| 398 |
- ansible-test-fedora-44.yml |
| 399 |
- ansible-test-freebsd.yml |
| 400 |
- ansible-test-managed-alpine-sudo.yml |
| 401 |
- ansible-test-rhel.yml |
| 402 |
- ansible-test-sanity-test-requirements.yml |
| 403 |
- ansible-test-target-filtering.yml |
| 404 |
- ansible-test-timeout-callback.yml |
| 405 |
- ansible-test-ubuntu-2604.yml |
| 406 |
- ansible-test-update-distro-containers.yml |
| 407 |
- ansible-test-windows-server-2016.yml |
| 408 |
- apt_repository-validate-source-indexerror.yml |
| 409 |
- apt_repository.yml |
| 410 |
- bump-freebsd-15-0-to-15-1.yml |
| 411 |
- check_type_int-inf.yml |
| 412 |
- collection-loader-extensions.yml |
| 413 |
- configurable_invocation.yml |
| 414 |
- configurable_worker_session_isolation.yml |
| 415 |
- core_ci_remote_alias.yml |
| 416 |
- deprecate-return-values.yml |
| 417 |
- deprecate-six.yml |
| 418 |
- disk_fact_paths.yml |
| 419 |
- distribution-cpe-name-fact.yml |
| 420 |
- dnf5-download_dir-download_only.yml |
| 421 |
- doc_string_dep.yml |
| 422 |
- fix-async-timeout-msg.yml |
| 423 |
- fix-cloning-malformed-role-requirements.yml |
| 424 |
- fix-short-timeout-async-wrapper.yml |
| 425 |
- fix-tree-and-oneline-callback-deprecation.yml |
| 426 |
- get-platform-deprecation-typo.yml |
| 427 |
- inject_invocation.yml |
| 428 |
- invalid-config-choice-origin.yml |
| 429 |
- jsonfile-cache-persistent.yml |
| 430 |
- mask_inurl_auth.yml |
| 431 |
- mask_url-password-auth.yml |
| 432 |
- mask_url.yml |
| 433 |
- meta_skipped_callback_args.yml |
| 434 |
- multipart-generator.yaml |
| 435 |
- orderedset.yml |
| 436 |
- pager.yml |
| 437 |
- patch_resilience.yml |
| 438 |
- play-and-role-no-log-masking.yml |
| 439 |
- powershell-exec-wrapper-select-first.yml |
| 440 |
- psrp-2016.yml |
| 441 |
- python-support.yml |
| 442 |
- regex_escape-posix_extended.yml |
| 443 |
- remove-deprecated-connection-path.yml |
| 444 |
- remove-deprecated-libvirt-lxc-noseclabel.yml |
| 445 |
- sensitive-data-masking.yml |
| 446 |
- sort_obfuscation.yml |
| 447 |
- ssh-agent-hardening.yml |
| 448 |
- ssh-tty-parser-worker-crash.yml |
| 449 |
- start-at-task-fact-gathering.yml |
| 450 |
- su-fail-messages.yml |
| 451 |
- subelements.yml |
| 452 |
- sudo_rs_compat.yml |
| 453 |
- tagged-time-datetime-fold.yml |
| 454 |
- tempfile-path-traversal.yml |
| 455 |
- test-debugpy-path.yml |
| 456 |
- user_local_user.yml |
| 457 |
- user_sshkeys_symlink.yml |
| 458 |
- v2.22.0-initial-commit.yaml |
| 459 |
- windows-compression.yml |
| 460 |
- winrm-psrp-nolog.yml |
| 461 |
- yum_repo_deprecated.yml |
| 462 |
plugins: |
| 463 |
filter: |
| 464 |
- description: Redact registered secrets from a string |
| 465 |
name: mask_secrets |
| 466 |
namespace: null |
| 467 |
- description: Register a value as a secret so it is masked in output |
| 468 |
name: register_secret |
| 469 |
namespace: null |
| 470 |
release_date: '2026-09-17' |