Ansible 9 移植指南
Ansible 9 基于 Ansible-core 2.16。
我们建议您阅读此页面以及Ansible 9 变更日志,以了解您可能需要进行哪些更新。
剧本 (Playbook)
条件语句 - 由于在 ansible-core 2.16.1 中缓解了安全问题 CVE-2023-5764,包含嵌入式模板块的条件表达式可能会失败,并显示消息“
Conditional is marked as unsafe, and cannot be evaluated.
”,当嵌入式模板查询来自不受信任的来源(例如模块结果或标记为!unsafe
的变量)的数据时。包含嵌入式模板的条件语句在引用不受信任的数据时可能是恶意模板注入的来源,并且几乎总是可以重写而无需嵌入式模板。剧本任务条件关键字(如when
和until
)长期以来一直显示警告,不鼓励在条件语句中使用嵌入式模板;此警告也已扩展到非任务条件语句,例如assert
操作。- name: task with a module result (always untrusted by Ansible) shell: echo "hi mom" register: untrusted_result # don't do it this way... # - name: insecure conditional with embedded template consulting untrusted data # assert: # that: '"hi mom" is in {{ untrusted_result.stdout }}' - name: securely access untrusted values directly as Jinja variables instead assert: that: '"hi mom" is in untrusted_result.stdout'
命令行
已弃用
模块 (Modules)
已移除的模块
弃用通知
值得注意的模块更改
插件 (Plugins)
移植自定义脚本
网络
v9.13.0 移植指南
主要更改
取消删除 netapp.storagegrid。该集合不会从 Ansible 11 中移除 (https://forum.ansible.com/t/2811)。NetApp 的另一个团队已接管该集合的维护。
v9.12.0 移植指南
主要更改
ansible.posix
放弃对 Ansible 2.9 的支持,此版本的最低要求版本将为 ansible-core 2.15
fortinet.fortios
改进 SET 函数的逻辑,先发送 GET 请求,然后发送 PUT 或 POST 请求
Mantis
支持新的 FOS 版本 7.6.0。
已弃用的功能
community.network
集合已被弃用。如果在 Ansible 12 之前没有人再次开始维护它,它将从 Ansible 12 中删除。有关详细信息,请参阅针对未维护集合的集合删除流程(https://forum.ansible.com/t/8030)。由于违反 Ansible 包含要求,google.cloud 集合将从 Ansible 12 中删除。该集合存在未解决的健全性测试失败。有关详细信息(包括如何取消此操作),请参阅针对不满足集合要求的集合的集合删除流程(https://forum.ansible.com/t/8609)。
community.network
此集合及其中的所有内容均未维护且已弃用 (https://forum.ansible.com/t/8030)。如果您有兴趣维护集合的部分内容,请将其复制到您自己的存储库中,并在论坛讨论中告诉其他人。有关详细信息,请参阅集合创建者路径。
community.vmware
vmware_cluster_dpm - 此模块已被弃用,并将从 community.vmware 6.0.0 中删除 (https://github.com/ansible-collections/community.vmware/pull/2217)。
vmware_cluster_drs_recommendations - 此模块已被弃用,并将从 community.vmware 6.0.0 中删除 (https://github.com/ansible-collections/community.vmware/pull/2218)。
v9.11.0 移植指南
已弃用的功能
ngine_io.exoscale
集合已被弃用。如果在 Ansible 11 之前没有人再次开始维护它,它将从 Ansible 11 中删除。有关详细信息,请参阅针对未维护集合的集合删除流程(https://forum.ansible.com/t/2572)。由于违反 Ansible 包含要求,sensu.sensu_go 集合将从 Ansible 12 中删除。该集合存在未解决的健全性测试失败。有关详细信息(包括如何取消此操作),请参阅针对不满足集合要求的集合的集合删除流程(https://forum.ansible.com/t/8380)。
v9.10.0 移植指南
已弃用的功能
community.mysql
集合 - mysqlclient 连接器的支持已弃用 - 请改用 PyMySQL 连接器!我们将在集合 4.0.0 版本中停止对其进行测试,并在 5.0.0 版本中删除相关代码 (https://github.com/ansible-collections/community.mysql/issues/654)。
mysql_info -
users_info
过滤器返回的变量plugin_auth_string
包含哈希密码,这具有误导性,将在 community.mysql 4.0.0 中移除。请改用 plugin_hash_string 返回值。(https://github.com/ansible-collections/community.mysql/pull/629)mysql_user -
name
参数的user
别名已弃用,将在集合版本 5.0.0 中移除。请改用name
参数。
community.vmware
vmware_cluster - 此模块已弃用,将在 community.vmware 6.0.0 中移除。(https://github.com/ansible-collections/community.vmware/pull/2143)
vmware_cluster_drs - 此模块已弃用,将在 community.vmware 6.0.0 中移除。(https://github.com/ansible-collections/community.vmware/pull/2136)
vmware_cluster_vcls - 此模块已弃用,将在 community.vmware 6.0.0 中移除。(https://github.com/ansible-collections/community.vmware/pull/2156)
v9.9.0 移植指南
已知问题
community.docker
docker_container - 为容器网络指定 MAC 地址时,如果网络在容器创建后附加(例如,由于幂等性检查),则在某些情况下,Docker Daemon 至少会忽略 MAC 地址。(https://github.com/ansible-collections/community.docker/pull/933)
已弃用的功能
community.docker
此集合弃用对所有当前已结束生命周期的 ansible-core 版本的支持,根据 ansible-core 支持矩阵。这意味着此集合的下一个主要版本将不再支持 ansible-core 2.11、ansible-core 2.12、ansible-core 2.13 和 ansible-core 2.14。
community.routeros
此集合弃用对所有当前已结束生命周期的 Ansible/ansible-base/ansible-core 版本的支持,根据 ansible-core 支持矩阵。这意味着此集合的下一个主要版本将不再支持 Ansible 2.9、ansible-base 2.10、ansible-core 2.11、ansible-core 2.12、ansible-core 2.13 和 ansible-core 2.14。
community.sops
此集合弃用对所有当前已结束生命周期的 Ansible/ansible-base/ansible-core 版本的支持,根据 ansible-core 支持矩阵。这意味着此集合的下一个主要版本将不再支持 Ansible 2.9、ansible-base 2.10、ansible-core 2.11、ansible-core 2.12、ansible-core 2.13 和 ansible-core 2.14。
v9.8.0 移植指南
新增集合
ieisystem.inmanage (版本 2.0.0)
vmware.vmware (版本 1.3.0)
主要变更
fortinet.fortios
添加 sanity_test.yaml 文件以在 GitHub 中触发 CI 测试。
支持 Ansible-core 2.17。
支持新的 FOS 版本 7.4.4。
已弃用的功能
frr.frr
集合已弃用。如果在 Ansible 11 之前没有人开始再次维护它,它将从 Ansible 11 中移除。有关更多详细信息,请参阅 未维护集合的集合移除流程(https://forum.ansible.com/t/6243)。openvswitch.openvswitch
集合已弃用。如果在 Ansible 11 之前没有人开始再次维护它,它将从 Ansible 11 中移除。有关更多详细信息,请参阅 未维护集合的集合移除流程(https://forum.ansible.com/t/6245)。
v9.7.0 移植指南
已知问题
community.general
homectl - 此模块在 Python 3.13 或更高版本下无法工作,因为它依赖于已移除的
crypt
标准库模块。(https://github.com/ansible-collections/community.general/issues/4691,https://github.com/ansible-collections/community.general/pull/8497)udm_user - 此模块在 Python 3.13 或更高版本下无法工作,因为它依赖于已移除的
crypt
标准库模块。(https://github.com/ansible-collections/community.general/issues/4690,https://github.com/ansible-collections/community.general/pull/8497)
主要变更
containers.podman
添加对卷的挂载和卸载。
为网络添加多个子网。
为 podman_container 添加新的选项。
为 pod 模块添加新的选项。
添加 podman search。
改进 podman_container 中网络的幂等性。
重新设计 Podman Pod 模块的幂等性。
移除的功能
community.grafana
移除 grafana_dashboard 中已弃用的 message 参数。
v9.6.0 移植指南
新增集合
kaytus.ksmanage (版本 1.2.1)
已知问题
community.docker
请注意,community.docker 3.10.1 中包含的针对 requests 2.32.0 的修复程序仅修复了 Python 代码的 *内置* Docker SDK 问题。使用 Docker SDK for Python 的模块和插件仍然可能由于 SDK 目前与 requests 2.32.0 不兼容而失败。
如果您仍然遇到与 requests 2.32.0 相关的问题,例如
Not supported URL scheme http+docker
等错误消息,请将 requests 限制为<2.32.0
。
重大变更
community.ciscosmb
接口事实中的 ‘bandwith’ 已更改为 ‘bandwidth’。
已弃用的功能
amazon.aws
cloudformation -
template
参数已弃用,并将在 2026-05-01 后的某个版本中移除。可以将template_body
参数与查找插件结合使用。(https://github.com/ansible-collections/amazon.aws/pull/2048)module_utils.botocore -
get_aws_connection_info()
的boto3
参数将在 2025-05-01 后的某个版本中移除。自 4.0.0 版本以来,boto3
参数已被忽略。(https://github.com/ansible-collections/amazon.aws/pull/2047)module_utils.botocore -
get_aws_region()
的boto3
参数将在 2025-05-01 后的某个版本中移除。自 4.0.0 版本以来,boto3
参数已被忽略。(https://github.com/ansible-collections/amazon.aws/pull/2047)module_utils.ec2 -
get_ec2_security_group_ids_from_names()
的boto3
参数将在 2025-05-01 后的某个版本中移除。自 4.0.0 版本以来,boto3
参数已被忽略。(https://github.com/ansible-collections/amazon.aws/pull/2047)
community.crypto
acme 文档片段 - 默认的
community.crypto.acme[.documentation]
文档片段已弃用,并将从 community.crypto 3.0.0 中移除。请将其替换为新的community.crypto.acme.basic
和community.crypto.acme.account
片段。(https://github.com/ansible-collections/community.crypto/pull/735)acme.backends 模块实用程序 - 从 community.crypto 3.0.0 开始,必须实现 ACME 加密后端的
get_cert_information()
方法。(https://github.com/ansible-collections/community.crypto/pull/736)crypto.module_backends.common 模块实用程序 -
crypto.module_backends.common
模块实用程序已弃用,并将从 community.crypto 3.0.0 中移除。请改用改进的argspec
模块实用程序。(https://github.com/ansible-collections/community.crypto/pull/749)
community.docker
docker_compose - Docker Compose v1 模块已弃用,并将从 community.docker 4.0.0 中移除。请迁移到与 Docker Compose v2 兼容的
community.docker.docker_compose_v2
模块。(https://github.com/ansible-collections/community.docker/issues/823,https://github.com/ansible-collections/community.docker/pull/833)各种模块和插件 -
ssl_version
选项已弃用,并将从 community.docker 4.0.0 中移除。它已从 Docker SDK for Python 7.0.0 中移除,过去仅用于解决 SSL/TLS 问题。(https://github.com/ansible-collections/community.docker/pull/853)
v9.5.1 移植指南
主要变更
containers.podman
添加对 Podman 模块的四元组支持。
fortinet.fortios
在 monitor 和 monitor_fact 模块的文档中添加有关备份模块的说明。
支持新的 FOS 版本 7.4.2 和 7.4.3,并在集合中支持数据类型 mac_address。
将文档中支持的版本从最新版本更新为固定版本号。
将所需的 ansible 版本更新为 2.15。
已弃用的功能
community.crypto
acme.backends 模块实用程序 - 从 community.crypto 开始,所有
CryptoBackend
的实现都必须重写get_ordered_csr_identifiers()
。当前的默认实现(简单地对get_csr_identifiers()
的结果进行排序)将被移除(https://github.com/ansible-collections/community.crypto/pull/725)。
community.general
HipChat 回调插件 - HipChat 服务已被停用,自托管版本自 2020 年以来已停止维护。因此,回调插件已弃用,如果没有人提供令人信服的理由继续保留它,它将从 community.general 10.0.0 中移除(https://github.com/ansible-collections/community.general/issues/8184,https://github.com/ansible-collections/community.general/pull/8189)。
community.vmware
vmware_guest_tools_info - vm_tools_install_status 将从集合的下一个主要版本 (5.0.0) 中移除,因为提供此信息的 API 调用已被 VMware 弃用。请改用 vm_tools_running_status / vm_tools_version_status(https://github.com/ansible-collections/community.vmware/issues/2033)。
v9.4.0 移植指南
已弃用的功能
amazon.aws
iam_role_info - 在 2026-05-01 之后发布的版本中,路径必须以
/
开头和结尾(https://github.com/ansible-collections/amazon.aws/pull/1998)。
v9.3.0 移植指南
主要更改
community.mysql
集合版本 2.*.* 已停止维护,不再进行错误修复回滚。请考虑升级到最新版本。
fortinet.fortios
将文档和示例中的所有布尔值更新为 true/false。
更新 log_fact 的文档。
使用版本范围更新不匹配的版本消息。
将所需的 Ansible 版本更新为 2.14。
更新支持的版本范围而不是具体的版本号,以减小集合的大小。
已弃用的功能
inspur.sm
集合被认为是未维护的,如果在 Ansible 11 之前没有人重新开始维护它,它将从 Ansible 11 中移除。有关更多详细信息,包括如何取消此操作,请参阅未维护集合的集合移除流程(https://forum.ansible.com/t/2854)。netapp.storagegrid
集合被认为是未维护的,如果在 Ansible 11 之前没有人重新开始维护它,它将从 Ansible 11 中移除。有关更多详细信息,包括如何取消此操作,请参阅未维护集合的集合移除流程(https://forum.ansible.com/t/2811)。purestorage.fusion
集合已被弃用。如果在 Ansible 10 之前没有人重新开始维护它,它将从 Ansible 10 中移除。有关更多详细信息,请参阅未维护集合的集合移除流程(https://forum.ansible.com/t/3712)。
community.crypto
openssl_csr_pipe、openssl_privatekey_pipe、x509_certificate_pipe - 检查模式的当前行为已弃用,将在 community.crypto 3.0.0 中更改。当前行为类似于没有
_pipe
的模块:如果需要(重新)生成对象,则仅设置changed
状态,但不会更新对象。从 community.crypto 3.0.0 开始,模块将忽略检查模式,并始终表现得好像检查模式未激活一样。现在可以通过向任务添加check_mode: false
来实现此行为。如果您认为这会破坏您对该模块的用例,请在 community.crypto 存储库中创建一个问题(https://github.com/ansible-collections/community.crypto/issues/712,https://github.com/ansible-collections/community.crypto/pull/714)。
v9.2.0 移植指南
新增集合
community.library_inventory_filtering_v1 (版本 1.0.0)
已知问题
dellemc.openmanage
idrac_firmware - 问题 (279282) - 此模块不支持使用具有身份验证的 HTTP、HTTPS 和 FTP 共享进行 iDRAC8 上的固件更新。
idrac_network_attributes - 问题 (279049) - 如果为参数
ome_network_attributes
提供不受支持的值,则此模块不会提供正确的错误消息。ome_device_network_services - 问题 (212681) - 如果为以下参数提供不受支持的值,则模块不会提供正确的错误消息:port_number、community_name、max_sessions、max_auth_retries 和 idle_timeout。
ome_device_power_settings - 问题 (212679) - 如果为参数
power_cap
提供的值不在 0 到 32767 的支持范围内,则模块将显示以下消息:Unable to complete the request because PowerCap does not exist or is not applicable for the resource URI.
ome_device_quick_deploy - 问题 (275231) - 此模块不会将新的配置部署到已禁用 IPv6 的插槽。
ome_diagnostics - 问题 (279193) - 将 SupportAssist 收集的日志导出到共享位置在 OME 版本 4.0.0 上失败。
ome_smart_fabric_uplink - 问题 (186024) - 该模块受 OpenManage Enterprise Modular 支持,但它不允许创建多个同名的上行链路。如果使用与现有上行链路相同的名称创建上行链路,则会修改现有上行链路。
主要更改
community.docker
community.docker
集合现在依赖于community.library_inventory_filtering_v1
集合。此实用程序集合为清单插件提供主机过滤功能。如果您使用 Ansible 社区包,则包含这两个集合,您无需执行任何特殊操作。如果您使用ansible-galaxy collection install
安装集合,它将自动安装。如果您通过将集合的文件复制到 ansible-core 可以找到的位置(例如克隆 git 存储库)来安装集合,则如果使用清单插件,则需要确保也安装依赖项(https://github.com/ansible-collections/community.docker/pull/698)。
community.hashi_vault
需求 - 由于在
ansible-core
中回滚的安全更改,hvac
所需的requests
包现在在此集合中某些用例中具有更严格的范围(https://github.com/ansible-collections/community.hashi_vault/pull/416)。
dellemc.openmanage
所有 OME 模块都增强为支持环境变量 OME_USERNAME 和 OME_PASSWORD 作为凭据的回退。
所有 iDRAC 和 Redfish 模块都增强为支持环境变量 IDRAC_USERNAME 和 IDRAC_PASSWORD 作为凭据的回退。
idrac_certificates - 模块增强为支持导入和导出 CUSTOMCERTIFICATE。
idrac_gather_facts - 此角色增强为支持安全启动。
idrac_license - 引入此模块来配置 iDRAC 许可证。
infoblox.nios_modules
将 Ansible 版本支持从 2.13 升级到 2.16。
将 Python 版本支持从 3.8 升级到 3.10。
已弃用的功能
community.dns
hetzner_dns_records 和 hosttech_dns_records 清单插件 -
filters
选项已重命名为simple_filters
。旧名称将在 community.hrobot 2.0.0 中停止工作(https://github.com/ansible-collections/community.dns/pull/181)。
community.docker
docker_container 模块 -
image_name_mismatch
参数的默认值ignore
已被弃用,将在 community.docker 4.0.0 版本中切换为recreate
。当使用默认值且更改默认值后行为会发生变化时,将打印弃用警告 (https://github.com/ansible-collections/community.docker/pull/703)。
community.general
consul_acl 模块 - 该模块已被弃用,并将从 community.general 10.0.0 版本中移除。可以使用
consul_token
和consul_policy
代替 (https://github.com/ansible-collections/community.general/pull/7901)。
community.hrobot
robot inventory 插件 -
filters
选项已重命名为simple_filters
。旧名称将在 community.hrobot 2.0.0 版本中停止工作 (https://github.com/ansible-collections/community.hrobot/pull/94)。
v9.1.0 移植指南
已知问题
dellemc.openmanage
idrac_firmware - 问题 (279282) - 此模块不支持使用具有身份验证的 HTTP、HTTPS 和 FTP 共享进行 iDRAC8 上的固件更新。
idrac_network_attributes - 问题 (279049) - 如果为参数
ome_network_attributes
提供不受支持的值,则此模块不会提供正确的错误消息。ome_device_network_services - 问题 (212681) - 如果为以下参数提供不受支持的值,则模块不会提供正确的错误消息:port_number、community_name、max_sessions、max_auth_retries 和 idle_timeout。
ome_device_power_settings - 问题 (212679) - 如果为参数
power_cap
提供的值不在 0 到 32767 的支持范围内,则模块将显示以下消息:Unable to complete the request because PowerCap does not exist or is not applicable for the resource URI.
ome_device_quick_deploy - 问题 (275231) - 此模块不会将新的配置部署到已禁用 IPv6 的插槽。
ome_diagnostics - 问题 (279193) - 将 SupportAssist 收集的日志导出到共享位置在 OME 版本 4.0.0 上失败。
ome_smart_fabric_uplink - 问题 (186024) - 该模块受 OpenManage Enterprise Modular 支持,但它不允许创建多个同名的上行链路。如果使用与现有上行链路相同的名称创建上行链路,则会修改现有上行链路。
重大更改
Ansible-core
assert - 嵌套模板可能会导致无法评估条件。请参阅移植指南了解更多信息。
v9.0.0 移植指南
新增集合
ibm.storage_virtualize (版本 2.1.0)
telekom_mms.icinga_director (版本 1.34.1)
已知问题
Ansible-core
ansible-galaxy - 在安装包含 Java 内部类(文件名中包含 $ 的文件)的角色过程中,中途终止。这是设计使然,目的是排除临时文件或备份文件。( https://github.com/ansible/ansible/pull/81553)。
ansible-test -
pep8
健全性测试无法检测 Python 3.10 和 3.11 中的 f-string 间距问题 (E201, E202)。在 Python 3.12 下可以正确检测到它们。请参见 (https://github.com/PyCQA/pycodestyle/issues/1190)。
community.crypto
在 2.15 之前的 ansible-core 版本中,ansible-doc 文本输出将以原始形式显示 Ansible 标记。如果您难以解读文档标记,请升级到 ansible-core 2.15(或更高版本),或阅读 https://docs.ansible.org.cn/ansible/devel/collections/community/crypto/ 上的 HTML 文档。
community.dns
在 2.15 之前的 ansible-core 版本中,ansible-doc 文本输出将以原始形式显示 Ansible 标记。如果您难以解读文档标记,请升级到 ansible-core 2.15(或更高版本),或阅读 https://docs.ansible.org.cn/ansible/devel/collections/community/dns/ 上的 HTML 文档。
community.docker
在 2.15 之前的 ansible-core 版本中,ansible-doc 文本输出将以原始形式显示 Ansible 标记。如果您难以解读文档标记,请升级到 ansible-core 2.15(或更高版本),或阅读 https://docs.ansible.org.cn/ansible/devel/collections/community/docker/ 上的 HTML 文档。
community.general
在 2.15 之前的 ansible-core 版本中,ansible-doc 文本输出将以原始形式显示 Ansible 标记。如果您难以解读文档标记,请升级到 ansible-core 2.15(或更高版本),或阅读 https://docs.ansible.org.cn/ansible/devel/collections/community/general/ 上的 HTML 文档 (https://github.com/ansible-collections/community.general/pull/6539)。
community.hrobot
在 2.15 之前的 ansible-core 版本中,ansible-doc 文本输出将以原始形式显示 Ansible 标记。如果您难以解读文档标记,请升级到 ansible-core 2.15(或更高版本),或阅读 https://docs.ansible.org.cn/ansible/devel/collections/community/hrobot/ 上的 HTML 文档。
community.routeros
在 2.15 之前的 ansible-core 版本中,ansible-doc 文本输出将以原始形式显示 Ansible 标记。如果您难以解读文档标记,请升级到 ansible-core 2.15(或更高版本),或阅读 https://docs.ansible.org.cn/ansible/devel/collections/community/routeros/ 上的 HTML 文档。
community.sops
在 2.15 之前的 ansible-core 版本中,ansible-doc 文本输出将以原始形式显示 Ansible 标记。如果您难以解读文档标记,请升级到 ansible-core 2.15(或更高版本),或阅读 https://docs.ansible.org.cn/ansible/devel/collections/community/sops/ 上的 HTML 文档。
dellemc.openmanage
缺少 ca_path - 问题 (275740) - idrac_attributes、redfish_storage_volume 和 idrac_server_powerstate 角色缺少参数 ca_path。
idrac_firmware - 问题 (276335) - 此模块在使用 NFS 共享的 Python 3.11.x 版本上失败。请使用其他 Python 版本或共享类型。
idrac_firmware - 问题 (279282) - 此模块不支持使用具有身份验证的 HTTP、HTTPS 和 FTP 共享进行 iDRAC8 上的固件更新。
idrac_network_attributes - 问题 (279049) - 如果为参数
ome_network_attributes
提供不受支持的值,则此模块不会提供正确的错误消息。idrac_redfish_storage_controller - 问题 (256164) - 如果为控制器配置提供的属性列表中的某个属性提供了不正确的值,则此模块不会以错误退出。
ome_device_network_services - 问题 (212681) - 如果为以下参数提供不受支持的值,则模块不会提供正确的错误消息:port_number、community_name、max_sessions、max_auth_retries 和 idle_timeout。
ome_device_power_settings - 问题 (212679) - 如果为参数
power_cap
提供的值不在 0 到 32767 的支持范围内,则模块将显示以下消息:Unable to complete the request because PowerCap does not exist or is not applicable for the resource URI.
ome_device_quick_deploy - 问题 (275231) - 此模块不会将新的配置部署到已禁用 IPv6 的插槽。
ome_smart_fabric_uplink - 问题 (186024) - 尽管 OpenManage Enterprise Modular 支持此模块,但它不允许创建多个同名的上行链路。如果使用与现有上行链路相同的名称创建上行链路,则会修改现有上行链路。
重大更改
Ansible-core
任何使用配置系统和 cli 条目来使用命令行 timeout 的插件,如果用户在任何较低优先级的方法中配置了它,都会看到值更改。如果您依赖此行为来使用 DEFAULT_TIMEOUT 常量中的全局/通用超时,请参阅有关插件配置的文档以添加重叠的条目。
ansible-test - 依赖于容器的测试插件不再支持重用正在运行的容器。之前的行为是一个未记录的、未经测试的功能。
service 模块在执行 enable/disable 操作时,将不再永久配置 openbsd 的变量/标志,此模块从来就不是为了执行此类工作,而只是为了管理服务状态本身。应该创建并使用 rcctl_config 或类似的模块。
amazon.aws
amazon.aws 集合已放弃对
botocore<1.29.0
和boto3<1.26.0
的支持。大多数模块将继续与较旧版本的 AWS SDK 兼容,但是,不保证与较旧版本的 SDK 的兼容性,并且不会对其进行测试。使用较旧版本的 SDK 时,Ansible 将发出警告 (https://github.com/ansible-collections/amazon.aws/pull/1763)。amazon.aws 集合 - 由于 AWS SDK 宣布终止对低于 3.7 的 Python 版本的支持 (https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/),此集合对低于 3.7 的 Python 版本的支持已在 6.0.0 版本中弃用,并在 7.0.0 版本中移除。( https://github.com/ansible-collections/amazon.aws/pull/1763)。
module_utils -
module_utils.urls
之前已弃用,现已移除 (https://github.com/ansible-collections/amazon.aws/pull/1540)。module_utils._version - 已删除 distutils.version 的供应商副本 (https://github.com/ansible-collections/amazon.aws/pull/1587)。
community.aws
community.aws 集合已放弃对
botocore<1.29.0
和boto3<1.26.0
的支持。大多数模块将继续与较旧版本的 AWS SDK 兼容,但是,不保证与较旧版本的 SDK 的兼容性,并且不会对其进行测试。使用较旧版本的 SDK 时,Ansible 将发出警告 (https://github.com/ansible-collections/amazon.aws/pull/1763)。aws_region_info - 此模块已从
community.aws
集合迁移。使用此模块的完整限定集合名称的 Playbook 应更新为使用amazon.aws.aws_region_info
。aws_s3_bucket_info - 此模块已从
community.aws
集合迁移。使用此模块的完整限定集合名称的 Playbook 应更新为使用amazon.aws.aws_s3_bucket_info
。community.aws 集合 - 由于 AWS SDK 宣布终止对低于 3.7 的 Python 版本的支持 (https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/),此集合对低于 3.7 的 Python 版本的支持已在 6.0.0 版本中弃用,并在 7.0.0 版本中移除。( https://github.com/ansible-collections/amazon.aws/pull/1763)。
iam_access_key - 此模块已从
community.aws
集合迁移。使用此模块的完整限定集合名称的 Playbook 应更新为使用amazon.aws.iam_access_key
。iam_access_key_info - 此模块已从
community.aws
集合迁移。使用此模块的完整限定集合名称的 Playbook 应更新为使用amazon.aws.iam_access_key_info
。iam_group - 此模块已从
community.aws
集合迁移。使用此模块的完整限定集合名称的 Playbook 应更新为使用amazon.aws.iam_group
(https://github.com/ansible-collections/community.aws/pull/1945)。iam_managed_policy - 此模块已从
community.aws
集合迁移。使用此模块的完整限定集合名称的 Playbook 应更新为使用amazon.aws.iam_managed_policy
(https://github.com/ansible-collections/community.aws/pull/1954)。iam_mfa_device_info - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 playbook 应更新为使用amazon.aws.iam_mfa_device_info
(https://github.com/ansible-collections/community.aws/pull/1953).iam_password_policy - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 playbook 应更新为使用amazon.aws.iam_password_policy
。iam_role - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 playbook 应更新为使用amazon.aws.iam_role
(https://github.com/ansible-collections/community.aws/pull/1948).iam_role_info - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 playbook 应更新为使用amazon.aws.iam_role_info
(https://github.com/ansible-collections/community.aws/pull/1948).s3_bucket_info - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 playbook 应更新为使用amazon.aws.s3_bucket_info
。sts_assume_role - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 playbook 应更新为使用amazon.aws.sts_assume_role
。
community.general
collection_version lookup 插件 - 删除对 ansible-base 2.10 和 ansible-core 2.11 的兼容性代码 (https://github.com/ansible-collections/community.general/pull/7269).
gitlab_project - 为项目更新添加
default_branch
支持。如果您之前使用此模块和default_branch
更新项目,则default_branch
的值会被忽略。请确保如果您不确定要使用的值,则不要传递任何值,以避免意外的破坏性更改 (https://github.com/ansible-collections/community.general/pull/7158).selective callback 插件 - 删除对 Ansible 2.9 和 ansible-core 2.10 的兼容性代码 (https://github.com/ansible-collections/community.general/pull/7269).
vardict 模块实用程序 -
VarDict
将不再接受名为_var
、get_meta
和as_dict
的变量 (https://github.com/ansible-collections/community.general/pull/6647).version 模块实用程序 - 删除对 ansible-core 2.11 的回退。所有执行版本集合的模块和插件都不再与 ansible-core 2.11 兼容 (https://github.com/ansible-collections/community.general/pull/7269).
community.hashi_vault
community.vmware
删除对 ansible-core 版本 < 2.15.0 的支持。
vmware_dvs_host - 删除 vmnics 和 lag_uplinks 的默认值 (https://github.com/ansible-collections/community.vmware/issues/1516).
vmware_host_acceptance - 删除 acceptance_level 并将其选项用于 state。这也意味着不再有 list 状态。要获取有关当前验收级别的信息,请使用新的模块 vmware_host_acceptance_info (https://github.com/ansible-collections/community.vmware/issues/1872).
vmware_vm_info - 在 vm_network 中的 IP 地址中添加了前缀长度,因此它们现在显示为例如 10.76.33.228/24,而不是仅 10.76.33.228 (https://github.com/ansible-collections/community.vmware/issues/1761).
dellemc.enterprise_sonic
sonic_aaa - 向 argspec 添加 default_auth 属性以替换已删除的 group 和 local 属性。此更改允许进行有序登录身份验证。(https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/195).
hetzner.hcloud
放弃对 ansible-core 2.12 的支持
放弃对 python 3.7 的支持
现在需要 hcloud-python 1.20.0 才能完全兼容
inventory 插件 - 当未定义服务器镜像时,不要设置服务器镜像变量(image_id、image_os_flavor 和 image_name)。
主要更改
amazon.aws
aws_region_info - 此模块已从
community.aws
集合迁移。使用此模块的完整限定集合名称的 Playbook 应更新为使用amazon.aws.aws_region_info
。aws_s3_bucket_info - 此模块已从
community.aws
集合迁移。使用此模块的完整限定集合名称的 Playbook 应更新为使用amazon.aws.aws_s3_bucket_info
。iam_access_key - 此模块已从
community.aws
集合迁移。使用此模块的完整限定集合名称的 Playbook 应更新为使用amazon.aws.iam_access_key
。iam_access_key_info - 此模块已从
community.aws
集合迁移。使用此模块的完整限定集合名称的 Playbook 应更新为使用amazon.aws.iam_access_key_info
。iam_group - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 playbook 应更新为使用amazon.aws.iam_group
(https://github.com/ansible-collections/amazon.aws/pull/1755).iam_managed_policy - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 playbook 应更新为使用amazon.aws.iam_managed_policy
(https://github.com/ansible-collections/amazon.aws/pull/1762).iam_mfa_device_info - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 playbook 应更新为使用amazon.aws.iam_mfa_device_info
(https://github.com/ansible-collections/amazon.aws/pull/1761).iam_password_policy - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 playbook 应更新为使用amazon.aws.iam_password_policy
。iam_role - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 playbook 应更新为使用amazon.aws.iam_role
(https://github.com/ansible-collections/amazon.aws/pull/1760).iam_role_info - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 playbook 应更新为使用amazon.aws.iam_role_info
(https://github.com/ansible-collections/amazon.aws/pull/1760).s3_bucket_info - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 playbook 应更新为使用amazon.aws.s3_bucket_info
。sts_assume_role - 此模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 playbook 应更新为使用amazon.aws.sts_assume_role
。
chocolatey.chocolatey
win_chocolatey - 添加用于指定校验和的选项
win_chocolatey_facts - 添加 filter/gather_subset 选项
cisco.ios
此版本删除了以前已弃用的模块以及此集合中的一些属性。有关详细信息,请参阅**已删除的功能**部分。
cisco.nxos
有关详细信息,请参阅**已删除的功能**部分。
此版本删除了此集合中四个以前已弃用的模块。
cloudscale_ch.cloud
将最低要求的 Ansible 版本提升到 2.13.0
community.mysql
community.mysql 集合不再支持
ansible-core 2.12
和ansible-core 2.13
。虽然我们没有采取任何积极措施来阻止使用,并且没有计划向模块引入不兼容的代码,但我们将停止测试这些版本。这两个版本都是或即将成为生命周期结束版本,如果您仍在使用它们,则应尽快考虑升级到最新 Ansible / ansible-core 2.15 或更高版本
(https://github.com/ansible-collections/community.mysql/pull/574).mysql_role -
column_case_sensitive
参数的默认值将在 community.mysql 4.0.0 中更改为true
。如果您的 playbook 预期列会为您的角色权限自动大写,则应将其显式设置为 false (https://github.com/ansible-collections/community.mysql/issues/578).mysql_user -
column_case_sensitive
参数的默认值将在 community.mysql 4.0.0 中更改为true
。如果您的 playbook 预期列会为您的用户权限自动大写,则应将其显式设置为 false (https://github.com/ansible-collections/community.mysql/issues/577).
community.postgresql
postgres 模块 - 集合支持的 psycopg2 库的最低版本为 2.5.1 (https://github.com/ansible-collections/community.postgresql/pull/556).
postgresql_pg_hba - 删除已弃用的
order
参数。排序顺序sdu
是硬编码的 (https://github.com/ansible-collections/community.postgresql/pull/496).postgresql_privs - 删除已弃用的
usage_on_types
参数。使用type
参数的type
选项来显式操作 PG 类型上的权限 (https://github.com/ansible-collections/community.postgresql/issues/208).postgresql_query - 删除已弃用的
path_to_script
和as_single_query
参数。使用postgresql_script
模块从脚本运行查询 (https://github.com/ansible-collections/community.postgresql/issues/189).postgresql_user - 将已弃用的
privs
参数的删除移至 community.postgresql 4.0.0 (https://github.com/ansible-collections/community.postgresql/issues/493).postgresql_user - 删除已弃用的
groups
参数。改用postgresql_membership
模块 (https://github.com/ansible-collections/community.postgresql/issues/300).
community.sap
所有模块 - 所有内容现在都重定向到新的集合 community.sap_libs
community.vmware
vmware_vasa - 添加了一个新的模块来注册/注销 VASA 提供程序
vmware_vasa_info - 添加了一个新的模块来收集有关现有 VASA 提供程序的信息
fortinet.fortimanager
支持 6.2、6.4、7.0、7.2 和 7.4 版本的所有 FortiManager 版本。新增 139 个模块。
支持基于令牌的身份验证。
fortinet.fortios
添加新的 FortiOS 版本 7.4.1。
添加 readthedocs.yaml 文件。
格式化 changelog.yml 文件中的内容。
改进了一些模块中的 no_log 功能;
改进文档,为使用整数作为 mkey 的模块的 Q&A 中添加注释和示例。
改进 fortios_router_static 中 seq_num 的文档和示例;
改进所有模块中 member_path 的文档;
支持新的 FOS 版本。
将 Ansible 版本从 2.9 更新到 2.14。
更新关于设置 FortiToken 多因素身份验证的 Q&A;
更新 Q&A,提供 Ansible 始终将 GET/PUT 请求作为 POST 请求发送的解决方案。
更新 requirement.txt 文件以指定 sphinx_rtd_theme==1.3.0
在 runtime.yml 文件中将所需的 Ansible 版本更新为 2.14.0。
grafana.grafana
由 @gardar 添加 Grafana 服务器角色
由 @NormanJS 配置代理用户组
由 @ishanjainn 支持 Grafana 插件在本地 Grafana 安装
由 @bentonam 更新流模式的服务
已移除的集合
cisco.nso(之前包含的版本:1.0.3)
community.fortios(之前包含的版本:1.0.0)
community.google(之前包含的版本:1.0.0)
community.skydive(之前包含的版本:1.0.0)
ngine_io.vultr(之前包含的版本:1.1.3)
servicenow.servicenow(之前包含的版本:1.0.6)
已移除的功能
cisco.nso
集合被认为是未维护的,已从 Ansible 9 中移除 (https://github.com/ansible-community/community-topics/issues/155)。用户仍然可以使用ansible-galaxy collection install cisco.nso
安装此集合。community.fortios
集合被认为是未维护的,已从 Ansible 9 中移除 (https://github.com/ansible-community/community-topics/issues/162)。用户仍然可以使用ansible-galaxy collection install community.fortios
安装此集合。community.google
集合被认为是未维护的,已从 Ansible 9 中移除 (https://github.com/ansible-community/community-topics/issues/160)。用户仍然可以使用ansible-galaxy collection install community.google
安装此集合。community.skydive
集合被认为是未维护的,已从 Ansible 9 中移除 (https://github.com/ansible-community/community-topics/issues/171)。用户仍然可以使用ansible-galaxy collection install community.skydive
安装此集合。ngine_io.vultr
集合被认为是未维护的,已从 Ansible 9 中移除 (https://github.com/ansible-community/community-topics/issues/257)。用户仍然可以使用ansible-galaxy collection install ngine_io.vultr
安装此集合。servicenow.servicenow 集合已从 Ansible 9 中移除。已弃用的 servicenow.servicenow 集合已从 Ansible 7 中移除,但意外地重新添加到 Ansible 8 中。详情请参见 移除讨论。用户仍然可以使用
ansible-galaxy collection install servicenow.servicenow
安装此集合。
Ansible-core
ActionBase - 删除已弃用的
_remote_checksum
方法PlayIterator - 删除已弃用的
cache_block_tasks
和get_original_task
方法删除已弃用的
FileLock
类控制器上不再支持 Python 3.9 版本。现在需要 Python 3.10 或更高版本。
删除了在 Ansible 2.12 中已弃用的
include
。请改用include_tasks
或import_tasks
。Templar
- 删除__init__
的已弃用参数shared_loader_obj
fetch_url
- 删除在 gzip 不可用时自动禁用decompress
的功能get_action_args_with_defaults
- 删除已弃用的方法参数redirected_names
ansible-test - 删除对远程 Windows 目标 2012 和 2012-R2 的支持
inventory_cache - 删除已弃用的
default.fact_caching_prefix
ini 配置选项,请改用defaults.fact_caching_prefix
。module_utils/basic.py - 删除 Python 3.5 作为受支持的远程版本。现在需要 Python 2.7 或 Python 3.6+。
stat - 删除未使用的 get_md5 参数。
ansible.windows
win_get_url - 删除已弃用的选项别名
passwordd
,请改用url_password
。win_get_url - 删除已弃用的选项别名
user
和username
,请改用url_username
。win_package - 删除已弃用的模块选项
ensure
,请改用state
。win_package - 删除已弃用的模块选项
productid
,请改用product_id
。win_package - 删除已弃用的模块选项
username
、user_name
、password
和user_password
。请改用任务中的become
,并使用become_flags: logon_type=new_credentials logon_flags=netcredentials_only
来复制相同的功能。win_reboot - 删除向后兼容性检查,其中
ignore_errors: true
将被视为ignore_unreachable: true
。将来,ignore_errors: true
只会忽略插件遇到的错误,而不是不可访问的主机。请使用ignore_unreachable: true
来忽略该错误,就像其他模块一样。win_regedit - 删除对使用带有正斜杠作为键分隔符的
path
的支持。自 Ansible 2.9 以来,使用正斜杠已被弃用。如果在win_regedit
path
值中使用正斜杠,请确保将正斜杠/
更改为反斜杠\
。如果用双引号括起来,则反斜杠必须加倍。win_updates - 删除已弃用的别名
blacklist
,请改用reject_list
。win_updates - 删除已弃用的别名
whitelist
,请改用accept_list
。win_updates - 删除已弃用的模块选项
use_scheduled_task
。此选项不会更改模块中的任何功能,可以安全地从任务条目中删除。win_uri - 删除已弃用的选项别名
password
,请改用url_password
。win_uri - 删除已弃用的选项别名
user
和username
,请改用url_username
。
cisco.ios
已弃用 ios_logging 模块,建议使用 ios_logging_global。
已弃用 bgp_address_family 的 next_hop_self 属性,建议使用 nexthop_self。
cisco.nxos
本版本已移除 nxos_bgp 模块。
本版本已移除 nxos_bgp_af 模块。
本版本已移除 nxos_bgp_neighbor 模块。
本版本已移除 nxos_bgp_neighbor_af 模块。
community.ciscosmb
移除对 Python 2.6 和 2.7 的测试
移除对 Ansible 2.9 的测试
community.general
此集合不再支持 ansible-core 2.11 和 ansible-core 2.12。集合的部分功能可能仍然在这些 ansible-core 版本上运行,但其他部分可能无法运行 (https://github.com/ansible-collections/community.general/pull/7269).
ansible_galaxy_install - 已移除对 Ansible 2.9 和 ansible-base 2.10 的支持 (https://github.com/ansible-collections/community.general/pull/7358).
consul - 当
state=absent
时,不再允许指定选项script
、ttl
、tcp
、http
和interval
(https://github.com/ansible-collections/community.general/pull/7358).gconftool2 - 已移除
state=get
。请改用模块community.general.gconftool2_info
(https://github.com/ansible-collections/community.general/pull/7358).gitlab_runner - 移除了
access_level
选项的默认值。要恢复之前的行为,请将其显式设置为ref_protected
(https://github.com/ansible-collections/community.general/pull/7358).htpasswd - 移除了对 passlib <1.6 的代码 (https://github.com/ansible-collections/community.general/pull/6901).
manageiq_polices - 已移除
state=list
。请改用模块community.general.manageiq_policies_info
(https://github.com/ansible-collections/community.general/pull/7358).manageiq_tags - 已移除
state=list
。请改用模块community.general.manageiq_tags_info
(https://github.com/ansible-collections/community.general/pull/7358).mh.mixins.cmd 模块实用程序 - 已移除
ArgFormat
类 (https://github.com/ansible-collections/community.general/pull/7358).mh.mixins.cmd 模块实用程序 - 已移除
CmdMixin
混合类。请改用community.general.plugins.module_utils.cmd_runner.CmdRunner
(https://github.com/ansible-collections/community.general/pull/7358).mh.mixins.cmd 模块实用程序 - 在移除所有内容后,已移除 mh.mixins.cmd 模块实用程序 (https://github.com/ansible-collections/community.general/pull/7358).
mh.module_helper 模块实用程序 - 已移除
CmdModuleHelper
和CmdStateModuleHelper
类。请改用community.general.plugins.module_utils.cmd_runner.CmdRunner
(https://github.com/ansible-collections/community.general/pull/7358).proxmox 模块实用程序 - 移除了未使用的导入 (https://github.com/ansible-collections/community.general/pull/6873).
xfconf - 已移除弃用的
disable_facts
选项 (https://github.com/ansible-collections/community.general/pull/7358).
community.hashi_vault
现在,
ansible-core
的最低支持版本为2.14
,已放弃对2.13
的支持 (https://github.com/ansible-collections/community.hashi_vault/pull/403).
community.vmware
移除了模块实用程序 version (https://github.com/ansible-collections/community.vmware/issues/1639).
vmware_guest - 移除了将 CDROM 配置指定为字典的方式,请改用列表 (https://github.com/ansible-collections/community.vmware/issues/1472).
vmware_host_lockdown - 移除了弃用的状态 absent 和 present (https://github.com/ansible-collections/community.vmware/issues/1517).
vmware_rest_client - 移除了弃用的方法 get_tag_by_category() (https://github.com/ansible-collections/community.vmware/issues/1898).
community.windows
移除了对 Server 2012 和 Server 2012 R2 的测试,因为它们即将达到 Microsoft 的生命周期结束状态。这些操作系统版本可能继续工作,但在 CI 中不会对其进行测试。
win_nssm - 移除了弃用的模块选项
app_parameters
,请改用arguments
。win_psmodule - 移除了弃用的模块选项
url
,请改用community.windows.win_psrepository
来管理存储库。win_psmodule - 当
state: absent
时,将不再移除指定的repository
,请改用community.windows.win_psrepository
来管理存储库。win_scheduled_tasks - 移除了对将触发器
repetition
定义为字典条目列表的支持。请将repetition
指定为字典值,而不是字典列表。
dellemc.openmanage
已移除
dellemc_get_firmware_inventory
模块,并将其替换为idrac_firmware_info
模块。已移除
dellemc_get_system_inventory
模块,并将其替换为idrac_system_info
模块。
hetzner.hcloud
hcloud_datacenter_facts 移除了弃用的 facts 模块
hcloud_floating_ip_facts 移除了弃用的 facts 模块
hcloud_image_facts 移除了弃用的 facts 模块
hcloud_location_facts 移除了弃用的 facts 模块
hcloud_server_facts 移除了弃用的 facts 模块
hcloud_server_type_facts 移除了弃用的 facts 模块
hcloud_ssh_key_facts 移除了弃用的 facts 模块
hcloud_volume_facts 移除了弃用的 facts 模块
已弃用的功能
community.azure
集合被认为是未维护的,如果在 Ansible 10 之前没有人开始再次维护它,它将从 Ansible 10 中移除。有关更多详细信息,包括如何取消此操作,请参阅 未维护集合的集合移除流程 (https://github.com/ansible-community/community-topics/issues/263).hpe.nimble
集合被认为是未维护的,如果在 Ansible 10 之前没有人开始再次维护它,它将从 Ansible 10 中移除。有关更多详细信息,包括如何取消此操作,请参阅 未维护集合的集合移除流程 (https://github.com/ansible-community/community-topics/issues/254).netapp.azure
集合被认为是未维护的,如果在 Ansible 10 之前没有人开始再次维护它,它将从 Ansible 10 中移除。有关更多详细信息,包括如何取消此操作,请参阅 未维护集合的集合移除流程 (https://github.com/ansible-community/community-topics/issues/234).netapp.elementsw
集合被认为是未维护的,如果在 Ansible 10 之前没有人开始再次维护它,它将从 Ansible 10 中移除。有关更多详细信息,包括如何取消此操作,请参阅 未维护集合的集合移除流程 (https://github.com/ansible-community/community-topics/issues/235).netapp.um_info
集合被认为是未维护的,如果在 Ansible 10 之前没有人开始再次维护它,它将从 Ansible 10 中移除。有关更多详细信息,包括如何取消此操作,请参阅 未维护集合的集合移除流程 (https://github.com/ansible-community/community-topics/issues/244).集合
community.sap
已重命名为community.sap_libs
。目前 Ansible 中同时包含这两个集合。该集合将从 Ansible 10 中完全移除。请将您的 FQCN 从community.sap
更新为community.sap_libs
。集合
ibm.spectrum_virtualize
已重命名为ibm.storage_virtualize
。目前 Ansible 中同时包含这两个集合。Ansible 10.0.0 中ibm.spectrum_virtualize
中的内容将被弃用的重定向替换。该集合将从 Ansible 12 中完全移除。请将您的 FQCN 从ibm.spectrum_virtualize
更新为ibm.storage_virtualize
。集合
t_systems_mms.icinga_director
已重命名为telekom_mms.icinga_director
。目前 Ansible 中同时包含这两个集合。Ansible 9.0.0 中t_systems_mms.icinga_director
中的内容已被弃用的重定向替换。该集合将从 Ansible 11 中完全移除。请将您的 FQCN 从t_systems_mms.icinga_director
更新为telekom_mms.icinga_director
。
Ansible-core
已弃用的 ini 配置选项
collections_paths
,请使用单数形式collections_path
代替。已弃用环境变量
ANSIBLE_COLLECTIONS_PATHS
,请使用单数形式ANSIBLE_COLLECTIONS_PATH
代替。使用入口点 get_host_vars 或 get_group_vars 的旧式变量插件已弃用。应更新插件以继承自 BaseVarsPlugin 并定义 get_vars 方法作为入口点。
由于微软已于 2023 年 10 月 10 日终止对 Windows Server 2012 和 2012 R2 的支持,因此 Ansible 已移除对它们的兼容性。这些版本的 Windows 将不再在此 Ansible 版本中进行测试,并且无法保证它们在未来继续工作。
STRING_CONVERSION_ACTION
配置选项已弃用,因为它不再用于 Ansible Core 代码库中。用于设置连接插件的“smart”选项将被移除,因为其主要用途(在 ssh 和 paramiko 之间选择)现在已不再相关。
vault 和 unfault 过滤器 - 未记录的
vaultid
参数已弃用,并将从 ansible-core 2.20 中移除。请使用vault_id
代替。yum_repository - 已弃用参数 ‘keepcache’ (https://github.com/ansible/ansible/issues/78693).
amazon.aws
ec2_instance - 已弃用
tenancy
和placement_group
,推荐使用placement
属性 (https://github.com/ansible-collections/amazon.aws/pull/1825).s3_object - 传递以
/
开头的对象键的支持已弃用,并将于 2025 年 12 月 1 日后的版本中移除 (https://github.com/ansible-collections/amazon.aws/pull/1549).
ansible.netcommon
libssh - ssh_*_args 选项现已标记为将于 2026 年 1 月 1 日后移除。
ansible.windows
在使用
setup
模块时,如果使用 Server 2012 或 2012 R2,将会添加警告。这些操作系统即将达到生命周期终点,届时将不再在 CI 中进行测试。win_domain - 模块已弃用,推荐使用
microsoft.ad.domain
模块,ansible.windows.win_domain
模块将在该集合的3.0.0
版本中移除。win_domain_controller - 模块已弃用,推荐使用
microsoft.ad.domain_controller
模块,ansible.windows.win_domain_controller
模块将在该集合的3.0.0
版本中移除。win_domain_membership - 模块已弃用,推荐使用
microsoft.ad.membership
模块,ansible.windows.win_domain_membership
模块将在该集合的3.0.0
版本中移除。
cisco.ios
ios_snmp_server - 已弃用 traps.envmon.fan,推荐使用 traps.envmon.fan_enable。
ios_snmp_server - 已弃用 traps.mpls_vpn,推荐使用 traps.mpls。
ospfv2 - 已移除 passive_interface,推荐使用 passive_interfaces,支持接口列表。
cisco.iosxr
已弃用 iosxr_bgp 模块,推荐使用 iosxr_bgp_global、iosxr_bgp_neighbor_address_family 和 iosxr_bgp_address_family。
iosxr_l2_interfaces - 已弃用 q_vlan,推荐使用 qvlan,支持字符串格式的 VLAN,例如“any”。
community.ciscosmb
不再支持 Python 2.6 和 2.7。
不再支持 ansible 2.9。
community.crypto
get_certificate -
asn1_base64
选项的默认值false
已弃用,将在 community.crypto 3.0.0 中更改为true
(https://github.com/ansible-collections/community.crypto/pull/600).
community.general
CmdRunner 模块实用程序 - 已弃用
cmd_runner_fmt.as_default_type()
格式化程序 (https://github.com/ansible-collections/community.general/pull/6601).MH VarsMixin 模块实用程序 - 已弃用
VarsMixin
和支持类,推荐使用普通的vardict
模块实用程序 (https://github.com/ansible-collections/community.general/pull/6649).下一个主要版本 community.general 8.0.0 将不再支持 ansible-core 2.11 和 2.12,这两个版本已经终止生命周期一段时间了。这意味着此集合不再支持目标上的 Python 2.6。各个内容可能仍然与不受支持的 ansible-core 版本一起工作,但这随时可能发生变化。另请注意,从现在起,对于每个新的主要 community.general 版本,我们将不再支持在主要版本发布日期已终止生命周期超过几周的所有 ansible-core 版本 (https://github.com/ansible-community/community-topics/discussions/271,https://github.com/ansible-collections/community.general/pull/7259).
ansible_galaxy_install -
ack_ansible29
和ack_min_ansiblecore211
选项已弃用,并将从 community.general 9.0.0 中移除 (https://github.com/ansible-collections/community.general/pull/7358).consul -
ack_params_state_absent
选项已弃用,并将从 community.general 10.0.0 中移除 (https://github.com/ansible-collections/community.general/pull/7358).cpanm -
compatibility
值作为参数mode
的默认值已弃用 (https://github.com/ansible-collections/community.general/pull/6512).ejabberd_user - 已弃用参数
logging
,推荐在模块输出中生成更详细的信息 (https://github.com/ansible-collections/community.general/pull/7043).flowdock - 模块完全依赖于不再响应的 API 端点,它将在 community.general 9.0.0 中移除 (https://github.com/ansible-collections/community.general/pull/6930).
proxmox - 旧的功能标志
proxmox_default_behavior
将在 community.general 10.0.0 中移除 (https://github.com/ansible-collections/community.general/pull/6836).proxmox_kvm - 已弃用选项
proxmox_default_behavior
(https://github.com/ansible-collections/community.general/pull/7377).redfish_info、redfish_config、redfish_command -
timeout
选项的默认值10
已弃用,将在 community.general 9.0.0 中更改为60
(https://github.com/ansible-collections/community.general/pull/7295).redhat 模块实用程序 -
module_utils.redhat
模块已弃用,因为实际上未使用:Rhsm
、RhsmPool
和RhsmPools
类将在 community.general 9.0.0 中移除;RegistrationBase
类将与rhn_register
模块一起在 community.general 10.0.0 中移除,因为它是此类的唯一用户;这意味着module_utils.redhat
模块将在 community.general 10.0.0 中被删除,因此即使没有使用其中的任何内容,导入它也会失败 (https://github.com/ansible-collections/community.general/pull/6663).redhat_subscription -
auto_attach
选项的别名autosubscribe
已弃用多年,尽管仅在文档中如此。正式标记此别名已弃用,它将在 community.general 9.0.0 中移除 (https://github.com/ansible-collections/community.general/pull/6646).redhat_subscription -
pool
选项已弃用,推荐使用更精确且更灵活的pool_ids
选项 (https://github.com/ansible-collections/community.general/pull/6650).rhsm_repository -
state=present
多年来一直无法按预期工作,似乎到目前为止还没有注意到;此外,“存在”对于订阅资源库来说并不是一个真正有效的概念,订阅资源库只能启用或禁用。因此,将state
选项的present
和absent
值标记为已弃用,计划在 community.general 10.0.0 中将其移除 (https://github.com/ansible-collections/community.general/pull/6673).stackdriver - 模块完全依赖于不再存在的 API 端点,它将在 community.general 9.0.0 中移除 (https://github.com/ansible-collections/community.general/pull/6887).
webfaction_app - 模块完全依赖于不再存在的 API 端点,它将在 community.general 9.0.0 中移除 (https://github.com/ansible-collections/community.general/pull/6909).
webfaction_db - 模块完全依赖于不再存在的 API 端点,它将在 community.general 9.0.0 中移除 (https://github.com/ansible-collections/community.general/pull/6909).
webfaction_domain 模块完全依赖于已不存在的 API 端点,将在 community.general 9.0.0 中移除 (https://github.com/ansible-collections/community.general/pull/6909).
webfaction_mailbox 模块完全依赖于已不存在的 API 端点,将在 community.general 9.0.0 中移除 (https://github.com/ansible-collections/community.general/pull/6909).
webfaction_site 模块完全依赖于已不存在的 API 端点,将在 community.general 9.0.0 中移除 (https://github.com/ansible-collections/community.general/pull/6909).
community.postgresql
postgresql_lang 模块已弃用,将在
community.postgresql 4.0.0
中移除。请改用postgresql_ext
模块 (https://github.com/ansible-collections/community.postgresql/issues/559).
community.sap
community.sap.hana_query 已弃用,建议使用 community.sap_libs.sap_hdbsql 代替。
community.sap.sap_company 已弃用,建议使用 community.sap_libs.sap_company 代替。
community.sap.sap_snote 已弃用,建议使用 community.sap_libs.sap_snote 代替。
community.sap.sap_task_list_execute 已弃用,建议使用 community.sap_libs.sap_task_list_execute 代替。
community.sap.sap_user 已弃用,建议使用 community.sap_libs.sap_user 代替。
community.sap.sapcar_extract 已弃用,建议使用 community.sap_libs.sapcar_extract 代替。
community.windows
win_domain_computer 模块已弃用,建议使用
microsoft.ad.computer
模块,community.windows.win_domain_computer
模块将在该集合的3.0.0
版本中移除。win_domain_group 模块已弃用,建议使用
microsoft.ad.group
模块,community.windows.win_domain_group
模块将在该集合的3.0.0
版本中移除。win_domain_group_membership 模块已弃用,建议使用
microsoft.ad.group
模块,community.windows.win_domain_group_membership
模块将在该集合的3.0.0
版本中移除。win_domain_object_info 模块已弃用,建议使用
microsoft.ad.object_info
模块,community.windows.win_domain_object_info
模块将在该集合的3.0.0
版本中移除。win_domain_ou 模块已弃用,建议使用
microsoft.ad.ou
模块,community.windows.win_domain_ou
模块将在该集合的3.0.0
版本中移除。win_domain_user 模块已弃用,建议使用
microsoft.ad.user
模块,community.windows.win_domain_user
模块将在该集合的3.0.0
版本中移除。
junipernetworks.junos
junos_ospfv2 - 为 area_range 添加弃用警告。
为 junos facts 结果中的 junos_acl_interfaces 键添加弃用警告。
microsoft.ad
即将停止支持 Server 2012 和 Server 2012 R2。微软即将停止对这些操作系统的支持,Ansible 对它们的也即将结束。
purestorage.fusion
fusion_api_client - ‘app_id’ 和 ‘key_file’ 参数已弃用,建议使用 ‘issuer_id’ 和 ‘private_key_file’ 参数代替,并在 2.0.0 版本中移除;FUSION_APP_ID 和 FUSION_HOST 环境变量已弃用,建议使用 FUSION_ISSUER_ID 和 FUSION_HOST 代替,并在 2.0.0 版本中移除。
fusion_array - ‘app_id’ 和 ‘key_file’ 参数已弃用,建议使用 ‘issuer_id’ 和 ‘private_key_file’ 参数代替,并在 2.0.0 版本中移除;FUSION_APP_ID 和 FUSION_HOST 环境变量已弃用,建议使用 FUSION_ISSUER_ID 和 FUSION_HOST 代替,并在 2.0.0 版本中移除。
fusion_az - ‘app_id’ 和 ‘key_file’ 参数已弃用,建议使用 ‘issuer_id’ 和 ‘private_key_file’ 参数代替,并在 2.0.0 版本中移除;FUSION_APP_ID 和 FUSION_HOST 环境变量已弃用,建议使用 FUSION_ISSUER_ID 和 FUSION_HOST 代替,并在 2.0.0 版本中移除。
fusion_hap - ‘app_id’ 和 ‘key_file’ 参数已弃用,建议使用 ‘issuer_id’ 和 ‘private_key_file’ 参数代替,并在 2.0.0 版本中移除;FUSION_APP_ID 和 FUSION_HOST 环境变量已弃用,建议使用 FUSION_ISSUER_ID 和 FUSION_HOST 代替,并在 2.0.0 版本中移除。
fusion_hap - 参数 nqn,wwns,host_password,host_user,target_password 和 target_user 已弃用。
fusion_hw - FUSION_APP_ID 和 FUSION_HOST 环境变量已弃用,建议使用 FUSION_ISSUER_ID 和 FUSION_HOST 代替,并在 2.0.0 版本中移除。
fusion_info - ‘app_id’ 和 ‘key_file’ 参数已弃用,建议使用 ‘issuer_id’ 和 ‘private_key_file’ 参数代替,并在 2.0.0 版本中移除;FUSION_APP_ID 和 FUSION_HOST 环境变量已弃用,建议使用 FUSION_ISSUER_ID 和 FUSION_HOST 代替,并在 2.0.0 版本中移除。
fusion_info - ‘hosts’ 子集已弃用,建议使用 ‘host_access_policies’ 代替,并在 2.0.0 版本中移除。
fusion_info - ‘interfaces’ 子集已弃用,建议使用 ‘network_interfaces’ 代替,并在 2.0.0 版本中移除。
fusion_info - ‘zones’ 子集已弃用,建议使用 ‘availability_zones’ 代替,并在 2.0.0 版本中移除。
fusion_ni - ‘app_id’ 和 ‘key_file’ 参数已弃用,建议使用 ‘issuer_id’ 和 ‘private_key_file’ 参数代替,并在 2.0.0 版本中移除;FUSION_APP_ID 和 FUSION_HOST 环境变量已弃用,建议使用 FUSION_ISSUER_ID 和 FUSION_HOST 代替,并在 2.0.0 版本中移除。
fusion_nig - ‘app_id’ 和 ‘key_file’ 参数已弃用,建议使用 ‘issuer_id’ 和 ‘private_key_file’ 参数代替,并在 2.0.0 版本中移除;FUSION_APP_ID 和 FUSION_HOST 环境变量已弃用,建议使用 FUSION_ISSUER_ID 和 FUSION_HOST 代替,并在 2.0.0 版本中移除。
fusion_pg - ‘app_id’ 和 ‘key_file’ 参数已弃用,建议使用 ‘issuer_id’ 和 ‘private_key_file’ 参数代替,并在 2.0.0 版本中移除;FUSION_APP_ID 和 FUSION_HOST 环境变量已弃用,建议使用 FUSION_ISSUER_ID 和 FUSION_HOST 代替,并在 2.0.0 版本中移除。
fusion_pp - ‘app_id’ 和 ‘key_file’ 参数已弃用,建议使用 ‘issuer_id’ 和 ‘private_key_file’ 参数代替,并在 2.0.0 版本中移除;FUSION_APP_ID 和 FUSION_HOST 环境变量已弃用,建议使用 FUSION_ISSUER_ID 和 FUSION_HOST 代替,并在 2.0.0 版本中移除。
fusion_ra - ‘app_id’ 和 ‘key_file’ 参数已弃用,建议使用 ‘issuer_id’ 和 ‘private_key_file’ 参数代替,并在 2.0.0 版本中移除;FUSION_APP_ID 和 FUSION_HOST 环境变量已弃用,建议使用 FUSION_ISSUER_ID 和 FUSION_HOST 代替,并在 2.0.0 版本中移除。
fusion_region - ‘app_id’ 和 ‘key_file’ 参数已弃用,建议使用 ‘issuer_id’ 和 ‘private_key_file’ 参数代替,并在 2.0.0 版本中移除;FUSION_APP_ID 和 FUSION_HOST 环境变量已弃用,建议使用 FUSION_ISSUER_ID 和 FUSION_HOST 代替,并在 2.0.0 版本中移除。
fusion_sc - ‘app_id’ 和 ‘key_file’ 参数已弃用,建议使用 ‘issuer_id’ 和 ‘private_key_file’ 参数代替,并在 2.0.0 版本中移除;FUSION_APP_ID 和 FUSION_HOST 环境变量已弃用,建议使用 FUSION_ISSUER_ID 和 FUSION_HOST 代替,并在 2.0.0 版本中移除。
fusion_se - ‘app_id’ 和 ‘key_file’ 参数已弃用,建议使用 ‘issuer_id’ 和 ‘private_key_file’ 参数代替,并在 2.0.0 版本中移除;FUSION_APP_ID 和 FUSION_HOST 环境变量已弃用,建议使用 FUSION_ISSUER_ID 和 FUSION_HOST 代替,并在 2.0.0 版本中移除。
fusion_se - endpoint_type 参数已弃用,将在 2.0.0 版本中移除。
fusion_ss - ‘app_id’ 和 ‘key_file’ 参数已弃用,建议使用 ‘issuer_id’ 和 ‘private_key_file’ 参数代替,并在 2.0.0 版本中移除;FUSION_APP_ID 和 FUSION_HOST 环境变量已弃用,建议使用 FUSION_ISSUER_ID 和 FUSION_HOST 代替,并在 2.0.0 版本中移除。
fusion_tenant - ‘app_id’ 和 ‘key_file’ 参数已弃用,建议使用 ‘issuer_id’ 和 ‘private_key_file’ 参数代替,并在 2.0.0 版本中移除;FUSION_APP_ID 和 FUSION_HOST 环境变量已弃用,建议使用 FUSION_ISSUER_ID 和 FUSION_HOST 代替,并在 2.0.0 版本中移除。
fusion_tn - FUSION_APP_ID 和 FUSION_HOST 环境变量已弃用,建议使用 FUSION_ISSUER_ID 和 FUSION_HOST 代替,并在 2.0.0 版本中移除。
fusion_ts - ‘app_id’ 和 ‘key_file’ 参数已弃用,建议使用 ‘issuer_id’ 和 ‘private_key_file’ 参数代替,并在 2.0.0 版本中移除;FUSION_APP_ID 和 FUSION_HOST 环境变量已弃用,建议使用 FUSION_ISSUER_ID 和 FUSION_HOST 代替,并在 2.0.0 版本中移除。
fusion_volume - ‘app_id’ 和 ‘key_file’ 参数已弃用,建议使用 ‘issuer_id’ 和 ‘private_key_file’ 参数代替,并在 2.0.0 版本中移除;FUSION_APP_ID 和 FUSION_HOST 环境变量已弃用,建议使用 FUSION_ISSUER_ID 和 FUSION_HOST 代替,并在 2.0.0 版本中移除。
t_systems_mms.icinga_director
所有模块和插件已迁移到新的命名空间 telekom_mms。请相应更新您的代码。