ansible-core 2.17.5rc1__py3-none-any.whl → 2.18.0rc1__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.
Potentially problematic release.
This version of ansible-core might be problematic. Click here for more details.
- ansible/__main__.py +2 -17
- ansible/cli/__init__.py +3 -15
- ansible/cli/config.py +187 -24
- ansible/cli/console.py +1 -1
- ansible/cli/doc.py +38 -16
- ansible/cli/galaxy.py +3 -49
- ansible/cli/inventory.py +2 -2
- ansible/cli/pull.py +2 -2
- ansible/cli/scripts/ansible_connection_cli_stub.py +1 -10
- ansible/config/base.yml +127 -57
- ansible/config/manager.py +89 -11
- ansible/constants.py +32 -9
- ansible/errors/__init__.py +5 -0
- ansible/executor/interpreter_discovery.py +1 -1
- ansible/executor/play_iterator.py +34 -0
- ansible/executor/playbook_executor.py +1 -4
- ansible/executor/powershell/become_wrapper.ps1 +4 -5
- ansible/executor/powershell/bootstrap_wrapper.ps1 +2 -3
- ansible/executor/powershell/exec_wrapper.ps1 +1 -1
- ansible/executor/powershell/module_manifest.py +2 -2
- ansible/executor/task_executor.py +50 -39
- ansible/executor/task_queue_manager.py +1 -1
- ansible/executor/task_result.py +1 -1
- ansible/galaxy/api.py +3 -4
- ansible/galaxy/collection/__init__.py +21 -10
- ansible/galaxy/collection/concrete_artifact_manager.py +10 -5
- ansible/galaxy/collection/galaxy_api_proxy.py +10 -16
- ansible/galaxy/collection/gpg.py +17 -23
- ansible/galaxy/data/COPYING +7 -0
- ansible/galaxy/data/apb/Dockerfile.j2 +1 -0
- ansible/galaxy/data/apb/Makefile.j2 +1 -0
- ansible/galaxy/data/apb/README.md +7 -3
- ansible/galaxy/data/apb/apb.yml.j2 +1 -0
- ansible/galaxy/data/apb/defaults/main.yml.j2 +1 -0
- ansible/galaxy/data/apb/handlers/main.yml.j2 +1 -0
- ansible/galaxy/data/apb/meta/main.yml.j2 +1 -0
- ansible/galaxy/data/apb/playbooks/deprovision.yml.j2 +1 -0
- ansible/galaxy/data/apb/playbooks/provision.yml.j2 +1 -0
- ansible/galaxy/data/apb/tasks/main.yml.j2 +1 -0
- ansible/galaxy/data/apb/tests/ansible.cfg +1 -0
- ansible/galaxy/data/apb/tests/inventory +1 -0
- ansible/galaxy/data/apb/tests/test.yml.j2 +1 -0
- ansible/galaxy/data/apb/vars/main.yml.j2 +1 -0
- ansible/galaxy/data/collections_galaxy_meta.yml +1 -0
- ansible/galaxy/data/container/defaults/main.yml.j2 +1 -0
- ansible/galaxy/data/container/handlers/main.yml.j2 +1 -0
- ansible/galaxy/data/container/meta/container.yml.j2 +1 -0
- ansible/galaxy/data/container/meta/main.yml.j2 +1 -0
- ansible/galaxy/data/container/tasks/main.yml.j2 +1 -0
- ansible/galaxy/data/container/tests/ansible.cfg +1 -0
- ansible/galaxy/data/container/tests/inventory +1 -0
- ansible/galaxy/data/container/tests/test.yml.j2 +1 -0
- ansible/galaxy/data/container/vars/main.yml.j2 +1 -0
- ansible/galaxy/data/default/collection/README.md.j2 +1 -0
- ansible/galaxy/data/default/collection/galaxy.yml.j2 +1 -0
- ansible/galaxy/data/default/collection/meta/runtime.yml +1 -0
- ansible/galaxy/data/default/collection/plugins/README.md.j2 +1 -0
- ansible/galaxy/data/default/role/defaults/main.yml.j2 +1 -0
- ansible/galaxy/data/default/role/handlers/main.yml.j2 +1 -0
- ansible/galaxy/data/default/role/meta/main.yml.j2 +1 -0
- ansible/galaxy/data/default/role/tasks/main.yml.j2 +1 -0
- ansible/galaxy/data/default/role/tests/inventory +1 -0
- ansible/galaxy/data/default/role/tests/test.yml.j2 +1 -0
- ansible/galaxy/data/default/role/vars/main.yml.j2 +1 -0
- ansible/galaxy/data/network/cliconf_plugins/example.py.j2 +1 -0
- ansible/galaxy/data/network/defaults/main.yml.j2 +1 -0
- ansible/galaxy/data/network/library/example_command.py.j2 +1 -0
- ansible/galaxy/data/network/library/example_config.py.j2 +1 -0
- ansible/galaxy/data/network/library/example_facts.py.j2 +1 -0
- ansible/galaxy/data/network/meta/main.yml.j2 +1 -0
- ansible/galaxy/data/network/module_utils/example.py.j2 +1 -0
- ansible/galaxy/data/network/netconf_plugins/example.py.j2 +1 -0
- ansible/galaxy/data/network/tasks/main.yml.j2 +1 -0
- ansible/galaxy/data/network/terminal_plugins/example.py.j2 +1 -0
- ansible/galaxy/data/network/tests/inventory +1 -0
- ansible/galaxy/data/network/tests/test.yml.j2 +1 -0
- ansible/galaxy/data/network/vars/main.yml.j2 +1 -0
- ansible/galaxy/dependency_resolution/providers.py +3 -3
- ansible/galaxy/role.py +1 -1
- ansible/galaxy/token.py +20 -8
- ansible/keyword_desc.yml +1 -1
- ansible/module_utils/_internal/__init__.py +0 -0
- ansible/module_utils/_internal/_concurrent/__init__.py +0 -0
- ansible/module_utils/_internal/_concurrent/_daemon_threading.py +28 -0
- ansible/module_utils/_internal/_concurrent/_futures.py +21 -0
- ansible/module_utils/ansible_release.py +2 -2
- ansible/module_utils/api.py +2 -2
- ansible/module_utils/basic.py +8 -8
- ansible/module_utils/common/collections.py +1 -1
- ansible/module_utils/common/file.py +0 -6
- ansible/module_utils/common/process.py +22 -9
- ansible/module_utils/common/text/converters.py +5 -8
- ansible/module_utils/common/text/formatters.py +20 -4
- ansible/module_utils/common/validation.py +33 -25
- ansible/module_utils/compat/paramiko.py +6 -1
- ansible/module_utils/compat/selinux.py +2 -2
- ansible/module_utils/connection.py +8 -24
- ansible/module_utils/csharp/Ansible.Become.cs +14 -25
- ansible/module_utils/csharp/Ansible.Process.cs +1 -1
- ansible/module_utils/distro/__init__.py +1 -1
- ansible/module_utils/distro/_distro.py +8 -4
- ansible/module_utils/facts/collector.py +2 -0
- ansible/module_utils/facts/default_collectors.py +3 -1
- ansible/module_utils/facts/hardware/aix.py +54 -52
- ansible/module_utils/facts/hardware/darwin.py +37 -34
- ansible/module_utils/facts/hardware/freebsd.py +55 -15
- ansible/module_utils/facts/hardware/hpux.py +3 -0
- ansible/module_utils/facts/hardware/linux.py +101 -57
- ansible/module_utils/facts/hardware/netbsd.py +3 -0
- ansible/module_utils/facts/hardware/openbsd.py +4 -1
- ansible/module_utils/facts/hardware/sunos.py +7 -1
- ansible/module_utils/facts/network/aix.py +16 -17
- ansible/module_utils/facts/network/fc_wwn.py +4 -1
- ansible/module_utils/facts/network/hpux.py +21 -4
- ansible/module_utils/facts/network/iscsi.py +7 -8
- ansible/module_utils/facts/network/linux.py +0 -2
- ansible/module_utils/facts/other/facter.py +9 -4
- ansible/module_utils/facts/other/ohai.py +5 -5
- ansible/module_utils/facts/packages.py +49 -7
- ansible/module_utils/facts/sysctl.py +33 -31
- ansible/module_utils/facts/system/distribution.py +2 -2
- ansible/module_utils/facts/system/local.py +12 -22
- ansible/module_utils/facts/system/service_mgr.py +3 -1
- ansible/module_utils/facts/system/systemd.py +47 -0
- ansible/module_utils/facts/timeout.py +1 -1
- ansible/module_utils/powershell/Ansible.ModuleUtils.AddType.psm1 +1 -1
- ansible/module_utils/powershell/Ansible.ModuleUtils.CamelConversion.psm1 +1 -1
- ansible/module_utils/splitter.py +1 -1
- ansible/modules/add_host.py +1 -1
- ansible/modules/apt.py +43 -32
- ansible/modules/apt_key.py +6 -6
- ansible/modules/apt_repository.py +23 -14
- ansible/modules/assemble.py +7 -2
- ansible/modules/assert.py +4 -4
- ansible/modules/blockinfile.py +3 -6
- ansible/modules/command.py +1 -1
- ansible/modules/copy.py +4 -4
- ansible/modules/cron.py +13 -10
- ansible/modules/deb822_repository.py +16 -17
- ansible/modules/debconf.py +25 -22
- ansible/modules/debug.py +1 -1
- ansible/modules/dnf.py +79 -164
- ansible/modules/dnf5.py +54 -29
- ansible/modules/dpkg_selections.py +2 -2
- ansible/modules/expect.py +2 -2
- ansible/modules/fetch.py +2 -2
- ansible/modules/file.py +5 -3
- ansible/modules/find.py +40 -12
- ansible/modules/gather_facts.py +4 -2
- ansible/modules/get_url.py +29 -24
- ansible/modules/git.py +35 -35
- ansible/modules/group.py +71 -1
- ansible/modules/hostname.py +2 -4
- ansible/modules/include_vars.py +5 -5
- ansible/modules/iptables.py +13 -16
- ansible/modules/known_hosts.py +16 -13
- ansible/modules/lineinfile.py +1 -4
- ansible/modules/meta.py +6 -1
- ansible/modules/mount_facts.py +651 -0
- ansible/modules/package_facts.py +63 -80
- ansible/modules/pause.py +4 -3
- ansible/modules/pip.py +14 -14
- ansible/modules/replace.py +1 -4
- ansible/modules/rpm_key.py +31 -11
- ansible/modules/service.py +8 -8
- ansible/modules/service_facts.py +20 -5
- ansible/modules/set_stats.py +1 -1
- ansible/modules/setup.py +3 -3
- ansible/modules/stat.py +3 -3
- ansible/modules/subversion.py +1 -1
- ansible/modules/systemd.py +16 -10
- ansible/modules/systemd_service.py +16 -10
- ansible/modules/sysvinit.py +4 -4
- ansible/modules/unarchive.py +35 -22
- ansible/modules/uri.py +24 -18
- ansible/modules/user.py +148 -13
- ansible/modules/validate_argument_spec.py +3 -3
- ansible/modules/wait_for_connection.py +2 -1
- ansible/modules/yum_repository.py +136 -179
- ansible/parsing/dataloader.py +2 -2
- ansible/parsing/mod_args.py +11 -10
- ansible/parsing/vault/__init__.py +8 -3
- ansible/parsing/yaml/constructor.py +10 -8
- ansible/parsing/yaml/objects.py +1 -1
- ansible/playbook/base.py +12 -23
- ansible/playbook/helpers.py +4 -0
- ansible/playbook/loop_control.py +8 -0
- ansible/playbook/play.py +4 -22
- ansible/playbook/play_context.py +0 -16
- ansible/playbook/playbook_include.py +2 -2
- ansible/playbook/role/__init__.py +2 -2
- ansible/plugins/__init__.py +2 -0
- ansible/plugins/action/__init__.py +7 -9
- ansible/plugins/action/dnf.py +7 -5
- ansible/plugins/action/package.py +5 -4
- ansible/plugins/action/reboot.py +2 -2
- ansible/plugins/become/__init__.py +1 -1
- ansible/plugins/callback/__init__.py +44 -3
- ansible/plugins/callback/default.py +1 -1
- ansible/plugins/cliconf/__init__.py +1 -1
- ansible/plugins/connection/paramiko_ssh.py +2 -80
- ansible/plugins/connection/psrp.py +33 -82
- ansible/plugins/connection/ssh.py +0 -8
- ansible/plugins/connection/winrm.py +46 -1
- ansible/plugins/doc_fragments/connection_pipelining.py +2 -2
- ansible/plugins/doc_fragments/constructed.py +10 -10
- ansible/plugins/doc_fragments/default_callback.py +8 -8
- ansible/plugins/doc_fragments/files.py +5 -5
- ansible/plugins/doc_fragments/inventory_cache.py +2 -2
- ansible/plugins/doc_fragments/result_format_callback.py +6 -6
- ansible/plugins/doc_fragments/return_common.py +1 -1
- ansible/plugins/doc_fragments/shell_common.py +2 -10
- ansible/plugins/doc_fragments/shell_windows.py +0 -9
- ansible/plugins/doc_fragments/url.py +2 -2
- ansible/plugins/doc_fragments/url_windows.py +4 -5
- ansible/plugins/doc_fragments/validate.py +1 -1
- ansible/plugins/filter/core.py +2 -0
- ansible/plugins/filter/human_to_bytes.yml +9 -0
- ansible/plugins/filter/password_hash.yml +1 -1
- ansible/plugins/filter/strftime.yml +1 -1
- ansible/plugins/filter/to_nice_json.yml +7 -3
- ansible/plugins/filter/to_uuid.yml +1 -1
- ansible/plugins/filter/unique.yml +28 -0
- ansible/plugins/inventory/script.py +1 -1
- ansible/plugins/list.py +1 -1
- ansible/plugins/loader.py +0 -11
- ansible/plugins/lookup/config.py +1 -1
- ansible/plugins/lookup/csvfile.py +21 -9
- ansible/plugins/lookup/env.py +8 -9
- ansible/plugins/lookup/ini.py +10 -1
- ansible/plugins/lookup/random_choice.py +2 -2
- ansible/plugins/lookup/url.py +7 -2
- ansible/plugins/shell/__init__.py +15 -20
- ansible/plugins/shell/powershell.py +9 -6
- ansible/plugins/strategy/__init__.py +18 -7
- ansible/plugins/strategy/linear.py +1 -13
- ansible/plugins/test/core.py +23 -1
- ansible/plugins/test/issubset.yml +1 -1
- ansible/plugins/test/subset.yml +1 -1
- ansible/plugins/test/timedout.yml +20 -0
- ansible/plugins/test/vault_encrypted.yml +6 -6
- ansible/plugins/test/vaulted_file.yml +19 -0
- ansible/release.py +2 -2
- ansible/template/__init__.py +3 -8
- ansible/utils/collection_loader/_collection_finder.py +23 -55
- ansible/utils/display.py +44 -31
- ansible/utils/galaxy.py +1 -1
- ansible/utils/jsonrpc.py +1 -1
- ansible/utils/listify.py +1 -5
- ansible/utils/path.py +3 -0
- ansible/utils/vars.py +18 -27
- ansible/vars/manager.py +7 -150
- ansible/vars/plugins.py +1 -1
- ansible_core-2.18.0rc1.dist-info/Apache-License.txt +202 -0
- {ansible_core-2.17.5rc1.dist-info → ansible_core-2.18.0rc1.dist-info}/METADATA +36 -23
- ansible_core-2.18.0rc1.dist-info/MIT-license.txt +14 -0
- ansible_core-2.18.0rc1.dist-info/PSF-license.txt +48 -0
- {ansible_core-2.17.5rc1.dist-info → ansible_core-2.18.0rc1.dist-info}/RECORD +321 -316
- {ansible_core-2.17.5rc1.dist-info → ansible_core-2.18.0rc1.dist-info}/entry_points.txt +1 -1
- ansible_core-2.18.0rc1.dist-info/simplified_bsd.txt +8 -0
- ansible_test/_data/completion/docker.txt +7 -7
- ansible_test/_data/completion/remote.txt +5 -4
- ansible_test/_data/completion/windows.txt +4 -4
- ansible_test/_data/requirements/ansible-test.txt +1 -2
- ansible_test/_data/requirements/constraints.txt +1 -2
- ansible_test/_data/requirements/sanity.ansible-doc.txt +3 -3
- ansible_test/_data/requirements/sanity.changelog.in +1 -1
- ansible_test/_data/requirements/sanity.changelog.txt +4 -4
- ansible_test/_data/requirements/sanity.import.plugin.txt +2 -2
- ansible_test/_data/requirements/sanity.import.txt +1 -1
- ansible_test/_data/requirements/sanity.integration-aliases.txt +1 -1
- ansible_test/_data/requirements/sanity.pep8.txt +1 -1
- ansible_test/_data/requirements/sanity.pylint.txt +6 -8
- ansible_test/_data/requirements/sanity.runtime-metadata.txt +2 -2
- ansible_test/_data/requirements/sanity.validate-modules.txt +3 -3
- ansible_test/_data/requirements/sanity.yamllint.in +1 -0
- ansible_test/_data/requirements/sanity.yamllint.txt +1 -1
- ansible_test/_internal/ansible_util.py +8 -35
- ansible_test/_internal/ci/azp.py +1 -1
- ansible_test/_internal/classification/__init__.py +0 -2
- ansible_test/_internal/cli/parsers/key_value_parsers.py +3 -0
- ansible_test/_internal/commands/integration/cloud/hcloud.py +1 -1
- ansible_test/_internal/commands/integration/cloud/httptester.py +1 -1
- ansible_test/_internal/commands/integration/cloud/nios.py +1 -1
- ansible_test/_internal/commands/sanity/__init__.py +96 -19
- ansible_test/_internal/commands/sanity/pylint.py +20 -24
- ansible_test/_internal/completion.py +2 -0
- ansible_test/_internal/constants.py +0 -1
- ansible_test/_internal/coverage_util.py +1 -2
- ansible_test/_internal/docker_util.py +10 -2
- ansible_test/_internal/encoding.py +4 -4
- ansible_test/_internal/host_configs.py +10 -0
- ansible_test/_internal/host_profiles.py +9 -13
- ansible_test/_internal/pypi_proxy.py +1 -1
- ansible_test/_internal/python_requirements.py +5 -14
- ansible_test/_internal/timeout.py +1 -1
- ansible_test/_internal/util.py +56 -8
- ansible_test/_internal/util_common.py +5 -1
- ansible_test/_util/controller/sanity/code-smell/action-plugin-docs.json +3 -1
- ansible_test/_util/controller/sanity/code-smell/action-plugin-docs.py +6 -3
- ansible_test/_util/controller/sanity/code-smell/empty-init.json +0 -2
- ansible_test/_util/controller/sanity/pylint/config/ansible-test-target.cfg +5 -0
- ansible_test/_util/controller/sanity/pylint/config/ansible-test.cfg +5 -0
- ansible_test/_util/controller/sanity/pylint/config/code-smell.cfg +5 -0
- ansible_test/_util/controller/sanity/pylint/config/collection.cfg +6 -0
- ansible_test/_util/controller/sanity/pylint/config/default.cfg +6 -0
- ansible_test/_util/controller/sanity/pylint/plugins/deprecated.py +1 -19
- ansible_test/_util/controller/sanity/pylint/plugins/hide_unraisable.py +3 -4
- ansible_test/_util/controller/sanity/shellcheck/exclude.txt +1 -0
- ansible_test/_util/controller/sanity/validate-modules/validate_modules/main.py +67 -2
- ansible_test/_util/controller/sanity/validate-modules/validate_modules/schema.py +27 -5
- ansible_test/_util/target/cli/ansible_test_cli_stub.py +0 -0
- ansible_test/_util/target/common/constants.py +2 -2
- ansible_test/_util/target/injector/python.py +5 -0
- ansible_test/_util/target/pytest/plugins/ansible_pytest_coverage.py +6 -0
- ansible_test/_util/target/sanity/import/importer.py +1 -1
- ansible_test/_util/target/setup/bootstrap.sh +6 -17
- ansible_test/_util/target/setup/requirements.py +18 -24
- ansible_test/config/config.yml +1 -1
- ansible_core-2.17.5rc1.data/scripts/ansible-test +0 -44
- ansible_test/_data/requirements/sanity.mypy.in +0 -10
- ansible_test/_data/requirements/sanity.mypy.txt +0 -18
- ansible_test/_internal/commands/sanity/mypy.py +0 -274
- ansible_test/_util/controller/sanity/mypy/ansible-core.ini +0 -116
- ansible_test/_util/controller/sanity/mypy/ansible-test.ini +0 -27
- ansible_test/_util/controller/sanity/mypy/modules.ini +0 -92
- ansible_test/_util/controller/sanity/mypy/packaging.ini +0 -20
- {ansible_core-2.17.5rc1.dist-info → ansible_core-2.18.0rc1.dist-info}/COPYING +0 -0
- {ansible_core-2.17.5rc1.dist-info → ansible_core-2.18.0rc1.dist-info}/WHEEL +0 -0
- {ansible_core-2.17.5rc1.dist-info → ansible_core-2.18.0rc1.dist-info}/top_level.txt +0 -0
ansible/vars/manager.py
CHANGED
|
@@ -27,16 +27,14 @@ from hashlib import sha1
|
|
|
27
27
|
from jinja2.exceptions import UndefinedError
|
|
28
28
|
|
|
29
29
|
from ansible import constants as C
|
|
30
|
-
from ansible.errors import AnsibleError, AnsibleParserError, AnsibleUndefinedVariable, AnsibleFileNotFound, AnsibleAssertionError
|
|
30
|
+
from ansible.errors import AnsibleError, AnsibleParserError, AnsibleUndefinedVariable, AnsibleFileNotFound, AnsibleAssertionError
|
|
31
31
|
from ansible.inventory.host import Host
|
|
32
32
|
from ansible.inventory.helpers import sort_groups, get_group_vars
|
|
33
33
|
from ansible.module_utils.common.text.converters import to_text
|
|
34
|
-
from ansible.module_utils.six import text_type
|
|
35
|
-
from ansible.plugins.loader import lookup_loader
|
|
34
|
+
from ansible.module_utils.six import text_type
|
|
36
35
|
from ansible.vars.fact_cache import FactCache
|
|
37
36
|
from ansible.template import Templar
|
|
38
37
|
from ansible.utils.display import Display
|
|
39
|
-
from ansible.utils.listify import listify_lookup_plugin_terms
|
|
40
38
|
from ansible.utils.vars import combine_vars, load_extra_vars, load_options_vars
|
|
41
39
|
from ansible.utils.unsafe_proxy import wrap_var
|
|
42
40
|
from ansible.vars.clean import namespace_facts, clean_facts
|
|
@@ -161,6 +159,11 @@ class VariableManager:
|
|
|
161
159
|
on the functionality they provide. These arguments may be removed at a later date without a deprecation
|
|
162
160
|
period and without warning.
|
|
163
161
|
'''
|
|
162
|
+
if include_delegate_to:
|
|
163
|
+
display.deprecated(
|
|
164
|
+
"`VariableManager.get_vars`'s argument `include_delegate_to` has no longer any effect.",
|
|
165
|
+
version="2.19",
|
|
166
|
+
)
|
|
164
167
|
|
|
165
168
|
display.debug("in VariableManager get_vars()")
|
|
166
169
|
|
|
@@ -363,11 +366,6 @@ class VariableManager:
|
|
|
363
366
|
continue
|
|
364
367
|
except AnsibleParserError:
|
|
365
368
|
raise
|
|
366
|
-
else:
|
|
367
|
-
# if include_delegate_to is set to False or we don't have a host, we ignore the missing
|
|
368
|
-
# vars file here because we're working on a delegated host or require host vars, see NOTE above
|
|
369
|
-
if include_delegate_to and host:
|
|
370
|
-
raise AnsibleFileNotFound("vars file %s was not found" % vars_file_item)
|
|
371
369
|
except (UndefinedError, AnsibleUndefinedVariable):
|
|
372
370
|
if host is not None and self._fact_cache.get(host.name, dict()).get('module_setup') and task is not None:
|
|
373
371
|
raise AnsibleUndefinedVariable("an undefined variable was found when attempting to template the vars_files item '%s'"
|
|
@@ -430,11 +428,6 @@ class VariableManager:
|
|
|
430
428
|
# has to be copy, otherwise recursive ref
|
|
431
429
|
all_vars['vars'] = all_vars.copy()
|
|
432
430
|
|
|
433
|
-
# if we have a host and task and we're delegating to another host,
|
|
434
|
-
# figure out the variables for that host now so we don't have to rely on host vars later
|
|
435
|
-
if task and host and task.delegate_to is not None and include_delegate_to:
|
|
436
|
-
all_vars['ansible_delegated_vars'], all_vars['_ansible_loop_cache'] = self._get_delegated_vars(play, task, all_vars)
|
|
437
|
-
|
|
438
431
|
display.debug("done with get_vars()")
|
|
439
432
|
if C.DEFAULT_DEBUG:
|
|
440
433
|
# Use VarsWithSources wrapper class to display var sources
|
|
@@ -546,7 +539,6 @@ class VariableManager:
|
|
|
546
539
|
play=task.get_play(),
|
|
547
540
|
host=delegated_host,
|
|
548
541
|
task=task,
|
|
549
|
-
include_delegate_to=False,
|
|
550
542
|
include_hostvars=True,
|
|
551
543
|
)
|
|
552
544
|
}
|
|
@@ -554,141 +546,6 @@ class VariableManager:
|
|
|
554
546
|
|
|
555
547
|
return delegated_vars, delegated_host_name
|
|
556
548
|
|
|
557
|
-
def _get_delegated_vars(self, play, task, existing_variables):
|
|
558
|
-
# This method has a lot of code copied from ``TaskExecutor._get_loop_items``
|
|
559
|
-
# if this is failing, and ``TaskExecutor._get_loop_items`` is not
|
|
560
|
-
# then more will have to be copied here.
|
|
561
|
-
# TODO: dedupe code here and with ``TaskExecutor._get_loop_items``
|
|
562
|
-
# this may be possible once we move pre-processing pre fork
|
|
563
|
-
|
|
564
|
-
if not hasattr(task, 'loop'):
|
|
565
|
-
# This "task" is not a Task, so we need to skip it
|
|
566
|
-
return {}, None
|
|
567
|
-
|
|
568
|
-
display.deprecated(
|
|
569
|
-
'Getting delegated variables via get_vars is no longer used, and is handled within the TaskExecutor.',
|
|
570
|
-
version='2.18',
|
|
571
|
-
)
|
|
572
|
-
|
|
573
|
-
# we unfortunately need to template the delegate_to field here,
|
|
574
|
-
# as we're fetching vars before post_validate has been called on
|
|
575
|
-
# the task that has been passed in
|
|
576
|
-
vars_copy = existing_variables.copy()
|
|
577
|
-
|
|
578
|
-
# get search path for this task to pass to lookup plugins
|
|
579
|
-
vars_copy['ansible_search_path'] = task.get_search_path()
|
|
580
|
-
|
|
581
|
-
# ensure basedir is always in (dwim already searches here but we need to display it)
|
|
582
|
-
if self._loader.get_basedir() not in vars_copy['ansible_search_path']:
|
|
583
|
-
vars_copy['ansible_search_path'].append(self._loader.get_basedir())
|
|
584
|
-
|
|
585
|
-
templar = Templar(loader=self._loader, variables=vars_copy)
|
|
586
|
-
|
|
587
|
-
items = []
|
|
588
|
-
has_loop = True
|
|
589
|
-
if task.loop_with is not None:
|
|
590
|
-
if task.loop_with in lookup_loader:
|
|
591
|
-
fail = True
|
|
592
|
-
if task.loop_with == 'first_found':
|
|
593
|
-
# first_found loops are special. If the item is undefined then we want to fall through to the next
|
|
594
|
-
fail = False
|
|
595
|
-
try:
|
|
596
|
-
loop_terms = listify_lookup_plugin_terms(terms=task.loop, templar=templar, fail_on_undefined=fail, convert_bare=False)
|
|
597
|
-
|
|
598
|
-
if not fail:
|
|
599
|
-
loop_terms = [t for t in loop_terms if not templar.is_template(t)]
|
|
600
|
-
|
|
601
|
-
mylookup = lookup_loader.get(task.loop_with, loader=self._loader, templar=templar)
|
|
602
|
-
|
|
603
|
-
# give lookup task 'context' for subdir (mostly needed for first_found)
|
|
604
|
-
for subdir in ['template', 'var', 'file']: # TODO: move this to constants?
|
|
605
|
-
if subdir in task.action:
|
|
606
|
-
break
|
|
607
|
-
setattr(mylookup, '_subdir', subdir + 's')
|
|
608
|
-
|
|
609
|
-
items = wrap_var(mylookup.run(terms=loop_terms, variables=vars_copy))
|
|
610
|
-
|
|
611
|
-
except AnsibleTemplateError:
|
|
612
|
-
# This task will be skipped later due to this, so we just setup
|
|
613
|
-
# a dummy array for the later code so it doesn't fail
|
|
614
|
-
items = [None]
|
|
615
|
-
else:
|
|
616
|
-
raise AnsibleError("Failed to find the lookup named '%s' in the available lookup plugins" % task.loop_with)
|
|
617
|
-
elif task.loop is not None:
|
|
618
|
-
try:
|
|
619
|
-
items = templar.template(task.loop)
|
|
620
|
-
except AnsibleTemplateError:
|
|
621
|
-
# This task will be skipped later due to this, so we just setup
|
|
622
|
-
# a dummy array for the later code so it doesn't fail
|
|
623
|
-
items = [None]
|
|
624
|
-
else:
|
|
625
|
-
has_loop = False
|
|
626
|
-
items = [None]
|
|
627
|
-
|
|
628
|
-
# since host can change per loop, we keep dict per host name resolved
|
|
629
|
-
delegated_host_vars = dict()
|
|
630
|
-
item_var = getattr(task.loop_control, 'loop_var', 'item')
|
|
631
|
-
cache_items = False
|
|
632
|
-
for item in items:
|
|
633
|
-
# update the variables with the item value for templating, in case we need it
|
|
634
|
-
if item is not None:
|
|
635
|
-
vars_copy[item_var] = item
|
|
636
|
-
|
|
637
|
-
templar.available_variables = vars_copy
|
|
638
|
-
delegated_host_name = templar.template(task.delegate_to, fail_on_undefined=False)
|
|
639
|
-
if delegated_host_name != task.delegate_to:
|
|
640
|
-
cache_items = True
|
|
641
|
-
if delegated_host_name is None:
|
|
642
|
-
raise AnsibleError(message="Undefined delegate_to host for task:", obj=task._ds)
|
|
643
|
-
if not isinstance(delegated_host_name, string_types):
|
|
644
|
-
raise AnsibleError(message="the field 'delegate_to' has an invalid type (%s), and could not be"
|
|
645
|
-
" converted to a string type." % type(delegated_host_name), obj=task._ds)
|
|
646
|
-
|
|
647
|
-
if delegated_host_name in delegated_host_vars:
|
|
648
|
-
# no need to repeat ourselves, as the delegate_to value
|
|
649
|
-
# does not appear to be tied to the loop item variable
|
|
650
|
-
continue
|
|
651
|
-
|
|
652
|
-
# now try to find the delegated-to host in inventory, or failing that,
|
|
653
|
-
# create a new host on the fly so we can fetch variables for it
|
|
654
|
-
delegated_host = None
|
|
655
|
-
if self._inventory is not None:
|
|
656
|
-
delegated_host = self._inventory.get_host(delegated_host_name)
|
|
657
|
-
# try looking it up based on the address field, and finally
|
|
658
|
-
# fall back to creating a host on the fly to use for the var lookup
|
|
659
|
-
if delegated_host is None:
|
|
660
|
-
for h in self._inventory.get_hosts(ignore_limits=True, ignore_restrictions=True):
|
|
661
|
-
# check if the address matches, or if both the delegated_to host
|
|
662
|
-
# and the current host are in the list of localhost aliases
|
|
663
|
-
if h.address == delegated_host_name:
|
|
664
|
-
delegated_host = h
|
|
665
|
-
break
|
|
666
|
-
else:
|
|
667
|
-
delegated_host = Host(name=delegated_host_name)
|
|
668
|
-
else:
|
|
669
|
-
delegated_host = Host(name=delegated_host_name)
|
|
670
|
-
|
|
671
|
-
# now we go fetch the vars for the delegated-to host and save them in our
|
|
672
|
-
# master dictionary of variables to be used later in the TaskExecutor/PlayContext
|
|
673
|
-
delegated_host_vars[delegated_host_name] = self.get_vars(
|
|
674
|
-
play=play,
|
|
675
|
-
host=delegated_host,
|
|
676
|
-
task=task,
|
|
677
|
-
include_delegate_to=False,
|
|
678
|
-
include_hostvars=True,
|
|
679
|
-
)
|
|
680
|
-
delegated_host_vars[delegated_host_name]['inventory_hostname'] = vars_copy.get('inventory_hostname')
|
|
681
|
-
|
|
682
|
-
_ansible_loop_cache = None
|
|
683
|
-
if has_loop and cache_items:
|
|
684
|
-
# delegate_to templating produced a change, so we will cache the templated items
|
|
685
|
-
# in a special private hostvar
|
|
686
|
-
# this ensures that delegate_to+loop doesn't produce different results than TaskExecutor
|
|
687
|
-
# which may reprocess the loop
|
|
688
|
-
_ansible_loop_cache = items
|
|
689
|
-
|
|
690
|
-
return delegated_host_vars, _ansible_loop_cache
|
|
691
|
-
|
|
692
549
|
def clear_facts(self, hostname):
|
|
693
550
|
'''
|
|
694
551
|
Clears the facts for a host
|
ansible/vars/plugins.py
CHANGED
|
@@ -90,7 +90,7 @@ def get_vars_from_path(loader, path, entities, stage):
|
|
|
90
90
|
|
|
91
91
|
collection = '.' in plugin.ansible_name and not plugin.ansible_name.startswith('ansible.builtin.')
|
|
92
92
|
# Warn if a collection plugin has REQUIRES_ENABLED because it has no effect.
|
|
93
|
-
if collection and
|
|
93
|
+
if collection and hasattr(plugin, 'REQUIRES_ENABLED'):
|
|
94
94
|
display.warning(
|
|
95
95
|
"Vars plugins in collections must be enabled to be loaded, REQUIRES_ENABLED is not supported. "
|
|
96
96
|
"This should be removed from the plugin %s." % plugin.ansible_name
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright {yyyy} {name of copyright owner}
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
202
|
+
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ansible-core
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.18.0rc1
|
|
4
4
|
Summary: Radically simple IT automation
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Project-URL: Bug Tracker, https://github.com/ansible/ansible/issues
|
|
5
|
+
Author: Ansible Project
|
|
6
|
+
Project-URL: Homepage, https://ansible.com/
|
|
7
|
+
Project-URL: Source Code, https://github.com/ansible/ansible/
|
|
8
|
+
Project-URL: Bug Tracker, https://github.com/ansible/ansible/issues/
|
|
10
9
|
Project-URL: CI: Azure Pipelines, https://dev.azure.com/ansible/ansible/
|
|
11
|
-
Project-URL: Code of Conduct, https://docs.ansible.com/ansible/latest/community/code_of_conduct.html
|
|
12
10
|
Project-URL: Documentation, https://docs.ansible.com/ansible-core/
|
|
13
|
-
Project-URL:
|
|
14
|
-
Project-URL: Source Code, https://github.com/ansible/ansible
|
|
11
|
+
Project-URL: Code of Conduct, https://docs.ansible.com/ansible/latest/community/code_of_conduct.html
|
|
15
12
|
Classifier: Development Status :: 5 - Production/Stable
|
|
16
13
|
Classifier: Environment :: Console
|
|
17
14
|
Classifier: Intended Audience :: Developers
|
|
@@ -21,16 +18,20 @@ Classifier: License :: OSI Approved :: GNU General Public License v3 or later (G
|
|
|
21
18
|
Classifier: Natural Language :: English
|
|
22
19
|
Classifier: Operating System :: POSIX
|
|
23
20
|
Classifier: Programming Language :: Python :: 3
|
|
24
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
25
21
|
Classifier: Programming Language :: Python :: 3.11
|
|
26
22
|
Classifier: Programming Language :: Python :: 3.12
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
27
24
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
28
25
|
Classifier: Topic :: System :: Installation/Setup
|
|
29
26
|
Classifier: Topic :: System :: Systems Administration
|
|
30
27
|
Classifier: Topic :: Utilities
|
|
31
|
-
Requires-Python: >=3.
|
|
28
|
+
Requires-Python: >=3.11
|
|
32
29
|
Description-Content-Type: text/markdown
|
|
33
30
|
License-File: COPYING
|
|
31
|
+
License-File: licenses/Apache-License.txt
|
|
32
|
+
License-File: licenses/MIT-license.txt
|
|
33
|
+
License-File: licenses/PSF-license.txt
|
|
34
|
+
License-File: licenses/simplified_bsd.txt
|
|
34
35
|
Requires-Dist: jinja2 >=3.0.0
|
|
35
36
|
Requires-Dist: PyYAML >=5.1
|
|
36
37
|
Requires-Dist: cryptography
|
|
@@ -39,10 +40,10 @@ Requires-Dist: resolvelib <1.1.0,>=0.5.3
|
|
|
39
40
|
|
|
40
41
|
[](https://pypi.org/project/ansible-core)
|
|
41
42
|
[](https://docs.ansible.com/ansible/latest/)
|
|
42
|
-
[](https://docs.ansible.com/ansible/
|
|
43
|
+
[](https://docs.ansible.com/ansible/devel/community/communication.html)
|
|
43
44
|
[](https://dev.azure.com/ansible/ansible/_build/latest?definitionId=20&branchName=devel)
|
|
44
|
-
[](https://docs.ansible.com/ansible/
|
|
45
|
-
[](https://docs.ansible.com/ansible/
|
|
45
|
+
[](https://docs.ansible.com/ansible/devel/community/code_of_conduct.html)
|
|
46
|
+
[](https://docs.ansible.com/ansible/devel/community/communication.html#mailing-list-information)
|
|
46
47
|
[](COPYING)
|
|
47
48
|
[](https://bestpractices.coreinfrastructure.org/projects/2372)
|
|
48
49
|
|
|
@@ -79,21 +80,33 @@ features and fixes, directly. Although it is reasonably stable, you are more lik
|
|
|
79
80
|
breaking changes when running the `devel` branch. We recommend getting involved
|
|
80
81
|
in the Ansible community if you want to run the `devel` branch.
|
|
81
82
|
|
|
82
|
-
##
|
|
83
|
+
## Communication
|
|
84
|
+
|
|
85
|
+
Join the Ansible forum to ask questions, get help, and interact with the
|
|
86
|
+
community.
|
|
87
|
+
|
|
88
|
+
* [Get Help](https://forum.ansible.com/c/help/6): Find help or share your Ansible knowledge to help others.
|
|
89
|
+
Use tags to filter and subscribe to posts, such as the following:
|
|
90
|
+
* Posts tagged with [ansible](https://forum.ansible.com/tag/ansible)
|
|
91
|
+
* Posts tagged with [ansible-core](https://forum.ansible.com/tag/ansible-core)
|
|
92
|
+
* Posts tagged with [playbook](https://forum.ansible.com/tag/playbook)
|
|
93
|
+
* [Social Spaces](https://forum.ansible.com/c/chat/4): Meet and interact with fellow enthusiasts.
|
|
94
|
+
* [News & Announcements](https://forum.ansible.com/c/news/5): Track project-wide announcements including social events.
|
|
95
|
+
* [Bullhorn newsletter](https://docs.ansible.com/ansible/devel/community/communication.html#the-bullhorn): Get release announcements and important changes.
|
|
96
|
+
|
|
97
|
+
For more ways to get in touch, see [Communicating with the Ansible community](https://docs.ansible.com/ansible/devel/community/communication.html).
|
|
98
|
+
|
|
99
|
+
## Contribute to Ansible
|
|
83
100
|
|
|
84
|
-
*
|
|
101
|
+
* Check out the [Contributor's Guide](./.github/CONTRIBUTING.md).
|
|
102
|
+
* Read [Community Information](https://docs.ansible.com/ansible/devel/community) for all
|
|
85
103
|
kinds of ways to contribute to and interact with the project,
|
|
86
|
-
including
|
|
87
|
-
code to Ansible.
|
|
88
|
-
* Join a [Working Group](https://docs.ansible.com/ansible/devel/community/communication.html#working-groups),
|
|
89
|
-
an organized community devoted to a specific technology domain or platform.
|
|
104
|
+
including how to submit bug reports and code to Ansible.
|
|
90
105
|
* Submit a proposed code update through a pull request to the `devel` branch.
|
|
91
106
|
* Talk to us before making larger changes
|
|
92
107
|
to avoid duplicate efforts. This not only helps everyone
|
|
93
108
|
know what is going on, but it also helps save time and effort if we decide
|
|
94
109
|
some changes are needed.
|
|
95
|
-
* For a list of email lists, IRC channels and Working Groups, see the
|
|
96
|
-
[Communication page](https://docs.ansible.com/ansible/devel/community/communication.html)
|
|
97
110
|
|
|
98
111
|
## Coding Guidelines
|
|
99
112
|
|
|
@@ -106,7 +119,7 @@ We document our Coding Guidelines in the [Developer Guide](https://docs.ansible.
|
|
|
106
119
|
|
|
107
120
|
* The `devel` branch corresponds to the release actively under development.
|
|
108
121
|
* The `stable-2.X` branches correspond to stable releases.
|
|
109
|
-
* Create a branch based on `devel` and set up a [dev environment](https://docs.ansible.com/ansible/
|
|
122
|
+
* Create a branch based on `devel` and set up a [dev environment](https://docs.ansible.com/ansible/devel/dev_guide/developing_modules_general.html#common-environment-setup) if you want to open a PR.
|
|
110
123
|
* See the [Ansible release and maintenance](https://docs.ansible.com/ansible/devel/reference_appendices/release_and_maintenance.html) page for information about active branches.
|
|
111
124
|
|
|
112
125
|
## Roadmap
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
|
2
|
+
associated documentation files (the "Software"), to deal in the Software without restriction,
|
|
3
|
+
including without limitation the rights to use, copy, modify, merge, publish, distribute,
|
|
4
|
+
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
|
|
5
|
+
furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial
|
|
8
|
+
portions of the Software.
|
|
9
|
+
|
|
10
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
|
|
11
|
+
NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
12
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
|
|
13
|
+
OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
14
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
|
|
2
|
+
--------------------------------------------
|
|
3
|
+
|
|
4
|
+
1. This LICENSE AGREEMENT is between the Python Software Foundation
|
|
5
|
+
("PSF"), and the Individual or Organization ("Licensee") accessing and
|
|
6
|
+
otherwise using this software ("Python") in source or binary form and
|
|
7
|
+
its associated documentation.
|
|
8
|
+
|
|
9
|
+
2. Subject to the terms and conditions of this License Agreement, PSF hereby
|
|
10
|
+
grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
|
|
11
|
+
analyze, test, perform and/or display publicly, prepare derivative works,
|
|
12
|
+
distribute, and otherwise use Python alone or in any derivative version,
|
|
13
|
+
provided, however, that PSF's License Agreement and PSF's notice of copyright,
|
|
14
|
+
i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
|
15
|
+
2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Python Software Foundation;
|
|
16
|
+
All Rights Reserved" are retained in Python alone or in any derivative version
|
|
17
|
+
prepared by Licensee.
|
|
18
|
+
|
|
19
|
+
3. In the event Licensee prepares a derivative work that is based on
|
|
20
|
+
or incorporates Python or any part thereof, and wants to make
|
|
21
|
+
the derivative work available to others as provided herein, then
|
|
22
|
+
Licensee hereby agrees to include in any such work a brief summary of
|
|
23
|
+
the changes made to Python.
|
|
24
|
+
|
|
25
|
+
4. PSF is making Python available to Licensee on an "AS IS"
|
|
26
|
+
basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
|
|
27
|
+
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
|
|
28
|
+
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
|
|
29
|
+
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
|
|
30
|
+
INFRINGE ANY THIRD PARTY RIGHTS.
|
|
31
|
+
|
|
32
|
+
5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
|
|
33
|
+
FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
|
|
34
|
+
A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON,
|
|
35
|
+
OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
|
|
36
|
+
|
|
37
|
+
6. This License Agreement will automatically terminate upon a material
|
|
38
|
+
breach of its terms and conditions.
|
|
39
|
+
|
|
40
|
+
7. Nothing in this License Agreement shall be deemed to create any
|
|
41
|
+
relationship of agency, partnership, or joint venture between PSF and
|
|
42
|
+
Licensee. This License Agreement does not grant permission to use PSF
|
|
43
|
+
trademarks or trade name in a trademark sense to endorse or promote
|
|
44
|
+
products or services of Licensee, or any third party.
|
|
45
|
+
|
|
46
|
+
8. By copying, installing or otherwise using Python, Licensee
|
|
47
|
+
agrees to be bound by the terms and conditions of this License
|
|
48
|
+
Agreement.
|