ansible-core 2.19.0b1__py3-none-any.whl → 2.19.0b3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ansible/_internal/_ansiballz.py +1 -4
- ansible/_internal/_collection_proxy.py +47 -0
- ansible/_internal/_errors/_handler.py +4 -4
- ansible/_internal/_json/__init__.py +47 -4
- ansible/_internal/_json/_profiles/_legacy.py +2 -3
- ansible/_internal/_templating/_datatag.py +3 -4
- ansible/_internal/_templating/_engine.py +6 -1
- ansible/_internal/_templating/_jinja_bits.py +4 -4
- ansible/_internal/_templating/_jinja_plugins.py +7 -17
- ansible/cli/__init__.py +12 -5
- ansible/cli/arguments/option_helpers.py +4 -1
- ansible/cli/doc.py +14 -8
- ansible/config/base.yml +17 -20
- ansible/config/manager.py +2 -2
- ansible/constants.py +0 -62
- ansible/errors/__init__.py +6 -2
- ansible/executor/module_common.py +11 -7
- ansible/executor/process/worker.py +31 -26
- ansible/executor/task_executor.py +38 -31
- ansible/executor/task_queue_manager.py +62 -52
- ansible/executor/task_result.py +168 -72
- ansible/galaxy/api.py +1 -1
- ansible/galaxy/collection/__init__.py +3 -3
- ansible/inventory/manager.py +2 -1
- ansible/module_utils/_internal/_ansiballz.py +4 -30
- ansible/module_utils/_internal/_datatag/_tags.py +3 -25
- ansible/module_utils/_internal/_deprecator.py +134 -0
- ansible/module_utils/_internal/_plugin_info.py +25 -0
- ansible/module_utils/_internal/_validation.py +14 -0
- ansible/module_utils/ansible_release.py +1 -1
- ansible/module_utils/basic.py +68 -23
- ansible/module_utils/common/arg_spec.py +8 -3
- ansible/module_utils/common/messages.py +40 -23
- ansible/module_utils/common/process.py +0 -1
- ansible/module_utils/common/respawn.py +0 -7
- ansible/module_utils/common/warnings.py +13 -13
- ansible/module_utils/datatag.py +13 -13
- ansible/modules/async_status.py +1 -1
- ansible/modules/dnf5.py +1 -1
- ansible/modules/get_url.py +1 -1
- ansible/parsing/utils/jsonify.py +40 -0
- ansible/parsing/yaml/objects.py +16 -5
- ansible/playbook/included_file.py +25 -12
- ansible/playbook/task.py +0 -2
- ansible/plugins/__init__.py +18 -8
- ansible/plugins/action/__init__.py +6 -14
- ansible/plugins/action/gather_facts.py +2 -4
- ansible/plugins/callback/__init__.py +173 -86
- ansible/plugins/callback/default.py +79 -79
- ansible/plugins/callback/junit.py +20 -19
- ansible/plugins/callback/minimal.py +17 -17
- ansible/plugins/callback/oneline.py +23 -16
- ansible/plugins/callback/tree.py +13 -6
- ansible/plugins/connection/local.py +1 -1
- ansible/plugins/connection/paramiko_ssh.py +9 -2
- ansible/plugins/doc_fragments/action_core.py +1 -1
- ansible/plugins/filter/core.py +12 -2
- ansible/plugins/inventory/__init__.py +2 -2
- ansible/plugins/loader.py +194 -130
- ansible/plugins/lookup/url.py +2 -2
- ansible/plugins/strategy/__init__.py +76 -82
- ansible/plugins/strategy/free.py +4 -4
- ansible/plugins/strategy/linear.py +11 -9
- ansible/plugins/test/core.py +1 -1
- ansible/release.py +1 -1
- ansible/template/__init__.py +8 -6
- ansible/utils/collection_loader/_collection_meta.py +5 -3
- ansible/utils/display.py +141 -79
- ansible/utils/py3compat.py +1 -7
- ansible/utils/ssh_functions.py +4 -1
- ansible/utils/vars.py +23 -0
- ansible/vars/clean.py +1 -1
- ansible/vars/manager.py +18 -27
- ansible/vars/plugins.py +4 -4
- {ansible_core-2.19.0b1.dist-info → ansible_core-2.19.0b3.dist-info}/METADATA +1 -1
- {ansible_core-2.19.0b1.dist-info → ansible_core-2.19.0b3.dist-info}/RECORD +89 -85
- ansible_test/_internal/commands/sanity/pylint.py +1 -0
- ansible_test/_internal/docker_util.py +4 -3
- ansible_test/_util/controller/sanity/pylint/plugins/deprecated_calls.py +475 -0
- ansible_test/_util/controller/sanity/pylint/plugins/deprecated_comment.py +137 -0
- ansible/module_utils/_internal/_dataclass_annotation_patch.py +0 -64
- ansible/module_utils/_internal/_plugin_exec_context.py +0 -49
- ansible_test/_util/controller/sanity/pylint/plugins/deprecated.py +0 -399
- {ansible_core-2.19.0b1.dist-info → ansible_core-2.19.0b3.dist-info}/Apache-License.txt +0 -0
- {ansible_core-2.19.0b1.dist-info → ansible_core-2.19.0b3.dist-info}/BSD-3-Clause.txt +0 -0
- {ansible_core-2.19.0b1.dist-info → ansible_core-2.19.0b3.dist-info}/COPYING +0 -0
- {ansible_core-2.19.0b1.dist-info → ansible_core-2.19.0b3.dist-info}/MIT-license.txt +0 -0
- {ansible_core-2.19.0b1.dist-info → ansible_core-2.19.0b3.dist-info}/PSF-license.txt +0 -0
- {ansible_core-2.19.0b1.dist-info → ansible_core-2.19.0b3.dist-info}/WHEEL +0 -0
- {ansible_core-2.19.0b1.dist-info → ansible_core-2.19.0b3.dist-info}/entry_points.txt +0 -0
- {ansible_core-2.19.0b1.dist-info → ansible_core-2.19.0b3.dist-info}/simplified_bsd.txt +0 -0
- {ansible_core-2.19.0b1.dist-info → ansible_core-2.19.0b3.dist-info}/top_level.txt +0 -0
@@ -29,7 +29,7 @@ attributes:
|
|
29
29
|
platforms: all
|
30
30
|
until:
|
31
31
|
description: Denotes if this action obeys until/retry/poll keywords
|
32
|
-
support:
|
32
|
+
support: none
|
33
33
|
tags:
|
34
34
|
description: Allows for the 'tags' keyword to control the selection of this action for execution
|
35
35
|
support: full
|
ansible/plugins/filter/core.py
CHANGED
@@ -26,7 +26,7 @@ from jinja2.filters import do_map, do_select, do_selectattr, do_reject, do_rejec
|
|
26
26
|
from jinja2.environment import Environment
|
27
27
|
|
28
28
|
from ansible._internal._templating import _lazy_containers
|
29
|
-
from ansible.errors import AnsibleFilterError, AnsibleTypeError
|
29
|
+
from ansible.errors import AnsibleFilterError, AnsibleTypeError, AnsibleTemplatePluginError
|
30
30
|
from ansible.module_utils.datatag import native_type_name
|
31
31
|
from ansible.module_utils.common.json import get_encoder, get_decoder
|
32
32
|
from ansible.module_utils.six import string_types, integer_types, text_type
|
@@ -115,7 +115,10 @@ def to_bool(value: object) -> bool:
|
|
115
115
|
result = value_to_check == 1 # backwards compatibility with the old code which checked: value in ('yes', 'on', '1', 'true', 1)
|
116
116
|
|
117
117
|
# NB: update the doc string to reflect reality once this fallback is removed
|
118
|
-
display.deprecated(
|
118
|
+
display.deprecated(
|
119
|
+
msg=f'The `bool` filter coerced invalid value {value!r} ({native_type_name(value)}) to {result!r}.',
|
120
|
+
version='2.23',
|
121
|
+
)
|
119
122
|
|
120
123
|
return result
|
121
124
|
|
@@ -405,6 +408,13 @@ def comment(text, style='plain', **kw):
|
|
405
408
|
}
|
406
409
|
}
|
407
410
|
|
411
|
+
if style not in comment_styles:
|
412
|
+
raise AnsibleTemplatePluginError(
|
413
|
+
message=f"Invalid style {style!r}.",
|
414
|
+
help_text=f"Available styles: {', '.join(comment_styles)}",
|
415
|
+
obj=style,
|
416
|
+
)
|
417
|
+
|
408
418
|
# Pointer to the right comment type
|
409
419
|
style_params = comment_styles[style]
|
410
420
|
|
@@ -28,7 +28,7 @@ from collections.abc import Mapping
|
|
28
28
|
from ansible import template as _template
|
29
29
|
from ansible.errors import AnsibleError, AnsibleParserError, AnsibleValueOmittedError
|
30
30
|
from ansible.inventory.group import to_safe_group_name as original_safe
|
31
|
-
from ansible.module_utils._internal import
|
31
|
+
from ansible.module_utils._internal import _plugin_info
|
32
32
|
from ansible.parsing.utils.addresses import parse_address
|
33
33
|
from ansible.parsing.dataloader import DataLoader
|
34
34
|
from ansible.plugins import AnsiblePlugin, _ConfigurablePlugin
|
@@ -314,7 +314,7 @@ class BaseFileInventoryPlugin(_BaseInventoryPlugin):
|
|
314
314
|
super(BaseFileInventoryPlugin, self).__init__()
|
315
315
|
|
316
316
|
|
317
|
-
class Cacheable(
|
317
|
+
class Cacheable(_plugin_info.HasPluginInfo, _ConfigurablePlugin):
|
318
318
|
"""Mixin for inventory plugins which support caching."""
|
319
319
|
|
320
320
|
_cache: CachePluginAdjudicator
|