Ansible 10 移植指南
Ansible 10 基于 Ansible-core 2.17。
我们建议您阅读此页面以及Ansible 10 更新日志,以了解您可能需要进行哪些更新。
剧本 (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'
any_errors_fatal
- 当具有rescue
部分的块中的任务在一个主机上失败时,rescue
部分将在所有主机上执行。发生这种情况是因为any_errors_fatal
会自动使所有主机失败。
命令行
不再支持 Python 2.7 和 Python 3.6 作为远程版本。目标执行现在需要 Python 3.7+。
已弃用
无重大更改
模块 (Modules)
无重大更改
已移除的模块
以下模块已不存在
无重大更改
弃用通知
无重大更改
值得注意的模块更改
无重大更改
插件 (Plugins)
无重大更改
移植自定义脚本
无重大更改
网络
无重大更改
v10.7.0 移植指南
已知问题
dellemc.openmanage
idrac_diagnostics - 问题 (285322) - 此模块不支持通过 SOCKS 代理将诊断文件导出到 HTTP 和 HTTPS 共享。
idrac_firmware - 问题 (279282) - 此模块不支持使用具有身份验证的 HTTP、HTTPS 和 FTP 共享在 iDRAC8 上进行固件更新。
ome_smart_fabric_uplink - 问题 (186024) - 此模块受 OpenManage Enterprise Modular 支持,但是它不允许创建多个同名的上行链路。如果使用与现有上行链路相同的名称创建上行链路,则会修改现有上行链路。
主要更改
取消删除 netapp.storagegrid。此集合不会从 Ansible 11 中删除 (https://forum.ansible.com/t/2811)。NetApp 的另一个团队已接管此集合的维护工作。
dellemc.openmanage
omevv_baseline_profile - 此模块允许管理基线配置文件。
omevv_baseline_profile_info - 此模块允许检索基线配置文件信息。
omevv_compliance_info - 此模块允许检索固件合规性报告。
已弃用的功能
集合
ibm.spectrum_virtualize
已重命名为ibm.storage_virtualize
。目前,Ansible 中同时包含这两个集合。此集合将从 Ansible 12 中完全删除。请将您的 FQCN 从ibm.spectrum_virtualize
更新为ibm.storage_virtualize
。
v10.6.0 移植指南
已知问题
dellemc.openmanage
idrac_diagnostics - 问题 (285322) - 此模块不支持通过 SOCKS 代理将诊断文件导出到 HTTP 和 HTTPS 共享。
idrac_firmware - 问题 (279282) - 此模块不支持使用具有身份验证的 HTTP、HTTPS 和 FTP 共享在 iDRAC8 上进行固件更新。
ome_smart_fabric_uplink - 问题 (186024) - 此模块受 OpenManage Enterprise Modular 支持,但是它不允许创建多个同名的上行链路。如果使用与现有上行链路相同的名称创建上行链路,则会修改现有上行链路。
主要更改
ansible.posix
放弃对 Ansible 2.9 的支持,此版本将最低要求 ansible-core 2.15。
dellemc.openmanage
omevv_firmware_repository_profile - 此模块允许管理固件存储库配置文件。
omevv_firmware_repository_profile_info - 此模块允许检索固件存储库配置文件信息。
omevv_vcenter_info - 此模块允许检索 vCenter 信息。
fortinet.fortios
改进 SET 函数的逻辑,先发送 GET 请求,然后发送 PUT 或 POST 请求。
Mantis
支持新的 FOS 版本 7.6.0。
grafana.grafana
通过 @HamzaKhait 在 https://github.com/grafana/grafana-ansible-collection/pull/247 中添加对 mimir 配置文件“distributor”部分的支持。
通过 @pjezek 在 https://github.com/grafana/grafana-ansible-collection/pull/276 中再次允许 alloy_user_groups 变量。
通过 @voidquark 在 https://github.com/grafana/grafana-ansible-collection/pull/281 中改进 Alloy 角色。
通过 @dependabot 在 https://github.com/grafana/grafana-ansible-collection/pull/270 中将 ansible-lint 从 24.6.0 升级到 24.9.2。
通过 @dependabot 在 https://github.com/grafana/grafana-ansible-collection/pull/273 中将 pylint 从 3.2.5 升级到 3.3.1。
通过 @pieterlexis-tomtom 在 https://github.com/grafana/grafana-ansible-collection/pull/264 中确保检查模式适用于 otel 收集器。
通过 @Nemental 在 https://github.com/grafana/grafana-ansible-collection/pull/256 中修复仪表板任务的消息参数。
通过 @Aethylred 在 https://github.com/grafana/grafana-ansible-collection/pull/209 中更新 Alloy 变量以使用 grafana_alloy_ 命名空间,使其唯一。
通过 @aioue 在 https://github.com/grafana/grafana-ansible-collection/pull/272 中更新 README.md。
由 @aioue 在 https://github.com/grafana/grafana-ansible-collection/pull/275 更新 README.md
由 @aioue 在 https://github.com/grafana/grafana-ansible-collection/pull/274 更新 main.yml
由 @weakcamel 在 https://github.com/grafana/grafana-ansible-collection/pull/251 添加 grafana_plugins_ops 到默认值和文档
由 @copolycube 在 https://github.com/grafana/grafana-ansible-collection/pull/249 添加填充 google_analytics_4_id 值的选项
由 @copolycube 在 https://github.com/grafana/grafana-ansible-collection/pull/279 修复 ansible-lint 警告:禁止使用隐式八进制值“0640”
已弃用的功能
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)。
v10.5.0 移植指南
已知问题
dellemc.openmanage
idrac_diagnostics - 问题 (285322) - 此模块不支持通过 SOCKS 代理将诊断文件导出到 HTTP 和 HTTPS 共享。
idrac_firmware - 问题 (279282) - 此模块不支持使用具有身份验证的 HTTP、HTTPS 和 FTP 共享在 iDRAC8 上进行固件更新。
idrac_storage_volume - 问题 (290766) - 如果虚拟磁盘已存在于同一控制器上,则该模块将报告成功而不是显示新虚拟创建失败。
idrac_support_assist - 问题 (308550) - 当 NFS 共享路径包含子目录时,此模块将失败。
ome_diagnostics - 问题 (279193) - 将 SupportAssist 集合日志导出到共享位置在 OME 4.0.0 版本上失败。
ome_smart_fabric_uplink - 问题 (186024) - 此模块受 OpenManage Enterprise Modular 支持,但是它不允许创建多个同名的上行链路。如果使用与现有上行链路相同的名称创建上行链路,则会修改现有上行链路。
主要更改
dellemc.openmanage
idrac_secure_boot - 此模块允许配置属性、导入或导出安全启动证书以及重置密钥。
idrac_system_erase - 此模块允许擦除 iDRAC 上服务器的系统和存储组件。
已弃用的功能
ngine_io.exoscale
集合已弃用。如果在 Ansible 11 之前没有人开始再次维护它,它将从 Ansible 11 中删除。有关详细信息,请参阅 未维护集合的集合移除流程 (https://forum.ansible.com/t/2572)。集合
t_systems_mms.icinga_director
已重命名为telekom_mms.icinga_director
。目前,这两个集合都包含在 Ansible 中。t_systems_mms.icinga_director
中的内容已被 Ansible 9.0.0 中的已弃用重定向替换。该集合将从 Ansible 11 中完全删除。请将您的 FQCN 从t_systems_mms.icinga_director
更新为telekom_mms.icinga_director
。由于违反了 Ansible 包含要求,sensu.sensu_go 集合将从 Ansible 12 中删除。该集合存在 未解决的健全性测试失败。有关详细信息,包括如何取消此操作,请参阅 不满足集合要求的集合移除流程 (https://forum.ansible.com/t/8380)。
community.general
hipchat - hipchat 服务已停止,自托管版本自 2020 年起已停止使用。因此,该模块已弃用,如果没有人提供令人信服的理由继续保留它,它将从 community.general 11.0.0 中删除 (https://github.com/ansible-collections/community.general/pull/8919)。
v10.4.0 移植指南
已知问题
dellemc.openmanage
idrac_diagnostics - 问题 (285322) - 此模块不支持通过 SOCKS 代理将诊断文件导出到 HTTP 和 HTTPS 共享。
idrac_firmware - 问题 (279282) - 此模块不支持使用具有身份验证的 HTTP、HTTPS 和 FTP 共享在 iDRAC8 上进行固件更新。
idrac_storage_volume - 问题 (290766) - 如果虚拟磁盘已存在于同一控制器上,则该模块将报告成功而不是显示新虚拟创建失败。
idrac_support_assist - 问题 (308550) - 当 NFS 共享路径包含子目录时,此模块将失败。
ome_diagnostics - 问题 (279193) - 将 SupportAssist 集合日志导出到共享位置在 OME 4.0.0 版本上失败。
ome_smart_fabric_uplink - 问题 (186024) - 此模块受 OpenManage Enterprise Modular 支持,但是它不允许创建多个同名的上行链路。如果使用与现有上行链路相同的名称创建上行链路,则会修改现有上行链路。
主要更改
dellemc.openmanage
idrac_secure_boot - 此模块允许导入安全启动证书。
idrac_support_assist - 此模块允许在 iDRAC 上运行和导出 SupportAssist 集合日志。
grafana.grafana
修复:mimir molecule 应该使用 ansible core 2.16,由 @GVengelen 在 https://github.com/grafana/grafana-ansible-collection/pull/254 完成
已弃用的功能
amazon.aws
iam_role - 使用
create_instance_profile
和delete_instance_profile
选项创建和删除 IAM 实例配置文件的支持已弃用,并将在 2026-05-01 后的某个版本中删除。要管理 IAM 实例配置文件,可以使用amazon.aws.iam_instance_profile
模块代替 (https://github.com/ansible-collections/amazon.aws/pull/2221)。
community.general
MH 装饰器 cause_changes 模块实用程序 - 已弃用参数
on_success
和on_failure
(https://github.com/ansible-collections/community.general/pull/8791)。pipx - 对早于
1.7.0
版本的命令行工具pipx
的支持已弃用,并将从 community.general 11.0.0 中删除 (https://github.com/ansible-collections/community.general/pull/8793)。pipx_info - 对早于
1.7.0
版本的命令行工具pipx
的支持已弃用,并将从 community.general 11.0.0 中删除 (https://github.com/ansible-collections/community.general/pull/8793)。
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)。
v10.3.0 移植指南
已知问题
community.docker
docker_container - 为容器的网络指定 MAC 地址时,如果在容器创建后附加网络(例如,由于幂等性检查),则 Docker Daemon 至少在某些情况下会忽略 MAC 地址 (https://github.com/ansible-collections/community.docker/pull/933)。
dellemc.openmanage
idrac_diagnostics - 问题 (285322) - 此模块不支持通过 SOCKS 代理将诊断文件导出到 HTTP 和 HTTPS 共享。
idrac_firmware - 问题 (279282) - 此模块不支持使用具有身份验证的 HTTP、HTTPS 和 FTP 共享在 iDRAC8 上进行固件更新。
idrac_storage_volume - 问题 (290766) - 如果虚拟磁盘已存在于同一控制器上,则该模块将报告成功而不是显示新虚拟创建失败。
ome_diagnostics - 问题 (279193) - 将 SupportAssist 集合日志导出到共享位置在 OME 4.0.0 版本上失败。
ome_smart_fabric_uplink - 问题 (186024) - 此模块受 OpenManage Enterprise Modular 支持,但是它不允许创建多个同名的上行链路。如果使用与现有上行链路相同的名称创建上行链路,则会修改现有上行链路。
已弃用的功能
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。
v10.2.0 移植指南
已添加的集合
kubevirt.core (版本 1.5.0)
vmware.vmware (版本 1.3.0)
已知问题
dellemc.openmanage
idrac_diagnostics - 问题 (285322) - 此模块不支持通过 SOCKS 代理将诊断文件导出到 HTTP 和 HTTPS 共享。
idrac_firmware - 问题 (279282) - 此模块不支持使用具有身份验证的 HTTP、HTTPS 和 FTP 共享在 iDRAC8 上进行固件更新。
idrac_storage_volume - 问题 (290766) - 如果虚拟磁盘已存在于同一控制器上,则该模块将报告成功而不是显示新虚拟创建失败。
ome_diagnostics - 问题 (279193) - 将 SupportAssist 集合日志导出到共享位置在 OME 4.0.0 版本上失败。
ome_smart_fabric_uplink - 问题 (186024) - 此模块受 OpenManage Enterprise Modular 支持,但是它不允许创建多个同名的上行链路。如果使用与现有上行链路相同的名称创建上行链路,则会修改现有上行链路。
主要更改
dellemc.openmanage
idrac_server_config_profile - 此模块已增强,允许您导出和导入iDRAC上的自定义默认值。
ome_configuration_compliance_baseline - 此模块已增强,可以调度补救作业并分阶段重启。
fortinet.fortios
添加sanity_test.yaml文件以在GitHub中触发CI测试。
支持Ansible-core 2.17。
支持新的FOS版本7.4.4。
grafana.grafana
在@panfantastic的https://github.com/grafana/grafana-ansible-collection/pull/198中添加了在重启mimir之前的配置检查。
在@LexVar的https://github.com/grafana/grafana-ansible-collection/pull/173中添加了对在grafana角色中配置feature_toggles的支持。
在@v-zhuravlev的https://github.com/grafana/grafana-ansible-collection/pull/213中将安装后健康检查从agent回传到alloy。
由@dependabot将ansible-lint从24.2.3升级到24.5.0,参见https://github.com/grafana/grafana-ansible-collection/pull/207
由@dependabot将ansible-lint从24.5.0升级到24.6.0,参见https://github.com/grafana/grafana-ansible-collection/pull/216
由@dependabot将braces从3.0.2升级到3.0.3 (npm_and_yarn group, 1个目录),参见https://github.com/grafana/grafana-ansible-collection/pull/218
由@dependabot将pylint从3.1.0升级到3.1.1,参见https://github.com/grafana/grafana-ansible-collection/pull/200
由@dependabot将pylint从3.1.1升级到3.2.2,参见https://github.com/grafana/grafana-ansible-collection/pull/208
由@dependabot将pylint从3.2.2升级到3.2.3,参见https://github.com/grafana/grafana-ansible-collection/pull/217
由@dependabot将pylint从3.2.3升级到3.2.5,参见https://github.com/grafana/grafana-ansible-collection/pull/234
由@cardasac将配置从config.river更改为config.alloy,参见https://github.com/grafana/grafana-ansible-collection/pull/225
由@voidquark修复了基于版本的统一和传统警报的Grafana配置,参见https://github.com/grafana/grafana-ansible-collection/pull/215
由@v-zhuravlev添加了将alloy用户添加到额外组的支持,参见https://github.com/grafana/grafana-ansible-collection/pull/212
由@CPreun将result.json[‘message’]更新为result.json()[‘message’],参见https://github.com/grafana/grafana-ansible-collection/pull/223
已弃用的功能
frr.frr
集合已弃用。如果在Ansible 11之前没有人开始再次维护它,它将从Ansible 11中删除。有关详细信息,请参见未维护集合的集合移除流程(https://forum.ansible.com/t/6243)。openvswitch.openvswitch
集合已弃用。如果在Ansible 11之前没有人开始再次维护它,它将从Ansible 11中删除。有关详细信息,请参见未维护集合的集合移除流程(https://forum.ansible.com/t/6245)。
v10.1.0移植指南
新增集合
ieisystem.inmanage (版本2.0.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)。
dellemc.openmanage
idrac_diagnostics - 问题 (285322) - 此模块不支持通过 SOCKS 代理将诊断文件导出到 HTTP 和 HTTPS 共享。
idrac_firmware - 问题 (279282) - 此模块不支持使用具有身份验证的 HTTP、HTTPS 和 FTP 共享在 iDRAC8 上进行固件更新。
idrac_storage_volume - 问题 (290766) - 如果虚拟磁盘已存在于同一控制器上,则该模块将报告成功而不是显示新虚拟创建失败。
ome_diagnostics - 问题 (279193) - 将 SupportAssist 集合日志导出到共享位置在 OME 4.0.0 版本上失败。
ome_smart_fabric_uplink - 问题 (186024) - 此模块受 OpenManage Enterprise Modular 支持,但是它不允许创建多个同名的上行链路。如果使用与现有上行链路相同的名称创建上行链路,则会修改现有上行链路。
重大更改
containers.podman
添加了卷的挂载和卸载功能。
为网络添加了多个子网。
为podman_container添加了新的选项。
为pod模块添加了新的选项。
添加了podman search功能。
改进了podman_container中网络的幂等性。
重新设计了Podman Pod模块的幂等性。
dellemc.openmanage
添加了对使用会话ID进行iDRAC、OpenManage Enterprise和OpenManage Enterprise Modular身份验证的支持。
ome_session - 此模块允许您在OpenManage Enterprise和OpenManage Enterprise Modular上创建和删除会话。
已弃用的功能
community.general
CmdRunner模块实用程序 - 在
CmdRunner
上下文中设置ignore_none
参数的值已弃用,此功能应在community.general 12.0.0中删除(https://github.com/ansible-collections/community.general/pull/8479)。git_config -
list_all
选项已弃用,将在community.general 11.0.0中删除。请改用community.general.git_config_info
模块(https://github.com/ansible-collections/community.general/pull/8453)。git_config - 在不提供
value
的情况下使用state=present
已弃用,将在community.general 11.0.0中不被允许。请改用community.general.git_config_info
模块读取值(https://github.com/ansible-collections/community.general/pull/8453)。
v10.0.0移植指南
新增集合
community.library_inventory_filtering_v1 (版本1.0.1)
kaytus.ksmanage (版本1.2.1)
已知问题
community.docker
请注意,community.docker 3.10.1中包含的针对requests 2.32.0的修复程序仅修复了*内置*的Docker SDK for Python代码的问题。使用Docker SDK for Python的模块和插件仍然可能由于SDK当前与requests 2.32.0不兼容而失败。
如果您仍然遇到requests 2.32.0的问题,例如
Not supported URL scheme http+docker
之类的错误消息,请将requests限制为<2.32.0
。
dellemc.openmanage
idrac_diagnostics - 问题 (285322) - 此模块不支持通过 SOCKS 代理将诊断文件导出到 HTTP 和 HTTPS 共享。
idrac_firmware - 问题 (279282) - 此模块不支持使用具有身份验证的 HTTP、HTTPS 和 FTP 共享在 iDRAC8 上进行固件更新。
idrac_network_attributes - 问题(279049) - 如果为
ome_network_attributes
参数提供了不受支持的值,则此模块不会提供正确的错误消息。idrac_storage_volume - 问题 (290766) - 如果虚拟磁盘已存在于同一控制器上,则该模块将报告成功而不是显示新虚拟创建失败。
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 - 嵌套模板可能导致无法评估条件。有关更多信息,请参见移植指南。
amazon.aws
amazon.aws集合 - 已停止对ansible-core < 2.15的支持(https://github.com/ansible-collections/amazon.aws/pull/2093)。
iam_role -
iam_role.assume_role_policy_document
不再从CamelCase转换为snake_case(https://github.com/ansible-collections/amazon.aws/pull/2040)。iam_role_info -
iam_role.assume_role_policy_document
不再从CamelCase转换为snake_case(https://github.com/ansible-collections/amazon.aws/pull/2040)。kms_key -
policies
返回值已重命名为key_policies
,内容未更改(https://github.com/ansible-collections/amazon.aws/pull/2040)。kms_key_info -
policies
返回值已重命名为key_policies
,内容未更改(https://github.com/ansible-collections/amazon.aws/pull/2040)。lambda_event - |
batch_size
不再默认为100。根据boto3 API (https://boto3.amazonaws.com/v1/documentation/api/1.26.78/reference/services/lambda.html#Lambda.Client.create_event_source_mapping),batch_size
对于sqs源默认为10,对于流源默认为100 (https://github.com/ansible-collections/amazon.aws/pull/2025)。
cloud.common
将最低支持的Python版本提升到3.9。
移除对ansible-core < 2.14的支持。
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 集合 - 已放弃对ansible-core < 2.15的支持 (https://github.com/ansible-collections/community.aws/pull/2074)。
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.ciscosmb
接口“bandwith”的facts已更改为“bandwidth”。
community.dns
各个模块和插件中
txt_character_encoding
选项的默认值已从octal
更改为decimal
(https://github.com/ansible-collections/community.dns/pull/196)。清单插件 -
filters
不再是simple_filters
的别名,而是一个新的不同选项 (https://github.com/ansible-collections/community.dns/pull/196)。清单插件 -
plugin
选项现在是必需的 (https://github.com/ansible-collections/community.dns/pull/196)。lookup,lookup_as_dict -
search
的默认值已从false
(community.dns 2.x.y的隐式默认值)更改为true
(https://github.com/ansible-collections/community.dns/issues/200,https://github.com/ansible-collections/community.dns/pull/201)。
community.general
cpanm -
mode
选项的默认值已从compatibility
更改为new
(https://github.com/ansible-collections/community.general/pull/8198)。django_manage - 该模块现在需要Django >= 4.1 (https://github.com/ansible-collections/community.general/pull/8198)。
django_manage - 如果指定了
virtualenv
但该位置不存在虚拟环境,则该模块现在将失败 (https://github.com/ansible-collections/community.general/pull/8198)。redfish_command,redfish_config,redfish_info - 将
timeout
的默认值从10更改为60 (https://github.com/ansible-collections/community.general/pull/8198)。
community.hrobot
robot清单插件 -
filters
不再是simple_filters
的别名,而是一个新的不同选项 (https://github.com/ansible-collections/community.hrobot/pull/101)。
community.okd
将最低支持的Python版本提升到3.9 (https://github.com/openshift/community.okd/pull/202)。
移除对ansible-core < 2.14的支持 (https://github.com/openshift/community.okd/pull/202)。
hetzner.hcloud
放弃对ansible-core 2.13的支持。
certificate - not_valid_before和not_valid_after值现在以ISO-8601格式的字符串返回。
certificate_info - not_valid_before和not_valid_after值现在以ISO-8601格式的字符串返回。
inventory - 移除已弃用的api_token_env选项,可以使用ansible.builtin.env查找作为替代。
iso_info - deprecated值现在以ISO-8601格式的字符串返回。
kubernetes.core
移除对ansible-core < 2.14的支持。
将python kubernetes库更新到24.2.0,helm/kind-action更新到1.8.0,kubernetes >= 1.24。
theforeman.foreman
content_view_filter - 停止从此模块管理规则,应使用
content_view_filter_rule
。清单插件 - 不再默认将
https://127.0.0.1:3000
作为Foreman URL,现在提供URL是强制性的。
vmware.vmware_rest
移除对ansible-core < 2.14的支持。
主要变更
Ansible-core
urls.py - 移除对Python 2的支持。
ansible.netcommon
将`requires_ansible` 升级到 `>=2.14.0`,因为之前的 ansible-core 版本已达到生命周期结束。
ansible.utils
将`netaddr` 升级到 `>=0.10.1`,这意味着从本版本开始,此集合所需的最小`netaddr`版本为`>=0.10.1`。
将`requires_ansible` 升级到 `>=2.14.0`,因为之前的 ansible-core 版本已达到生命周期结束。
此版本主要解决了`netaddr`库中的重大更改。
随着`netaddr` 1.0.0 的新版本发布,`IPAddress.is_private()` 方法已被移除,取而代之的是扩展了 `IPAddress.is_global()` 方法以支持相同的功能。此更改已反映在 `ipaddr` 过滤器插件中。
arista.eos
将`requires_ansible` 升级到 `>=2.14.0`,因为之前的 ansible-core 版本已达到生命周期结束。
此版本移除了此集合中之前已弃用的模块和属性。有关详细信息,请参阅**已移除的功能**部分。
将 netcommon 基础版本更新到 6.1.0 以支持 cli_restore 插件。
cisco.asa
将`requires_ansible` 升级到 `>=2.14.0`,因为之前的 ansible-core 版本已达到生命周期结束。
cisco.ios
将`requires_ansible` 升级到 `>=2.14.0`,因为之前的 ansible-core 版本已达到生命周期结束。
将 netcommon 基础版本更新到 6.1.0 以支持 cli_restore 插件。
ios_ntp - 移除了已弃用的 ntp 遗留模块
cisco.iosxr
将`requires_ansible` 升级到 `>=2.14.0`,因为之前的 ansible-core 版本已达到生命周期结束。
此版本移除了此集合中之前已弃用的模块和属性。有关详细信息,请参阅**已移除的功能**部分。
更新 netcommon 基础版本以支持 cli_restore 插件。
cisco.nxos
将`requires_ansible` 升级到 `>=2.14.0`,因为之前的 ansible-core 版本已达到生命周期结束。
此版本移除了此集合中四个之前已弃用的模块。有关详细信息,请参阅**已移除的功能**部分。
将所需的最小 ansible.netcommon 版本更新到 6.1.0 以支持 cli_restore 模块。
community.dns
`community.dns` 集合现在依赖于 `community.library_inventory_filtering_v1` 集合。此实用程序集合为清单插件提供了主机过滤功能。如果您使用 Ansible 社区软件包,则这两个集合都包含在内,您无需执行任何特殊操作。如果您使用 `ansible-galaxy collection install` 安装集合,它将自动安装。如果您通过将集合的文件复制到 ansible-core 可以找到的地方(例如克隆 git 仓库)来安装集合,则如果使用清单插件,则需要确保也安装依赖项 (https://github.com/ansible-collections/community.dns/pull/196)。
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
需求 - `hvac` 所需的 `requests` 包现在由于已回滚的 `ansible-core` 中的破坏性安全更改,在某些用例中对该集合具有更严格的范围 (https://github.com/ansible-collections/community.hashi_vault/pull/416)。
community.hrobot
`community.hrobot` 集合现在依赖于 `community.library_inventory_filtering_v1` 集合。此实用程序集合为清单插件提供了主机过滤功能。如果您使用 Ansible 社区软件包,则这两个集合都包含在内,您无需执行任何特殊操作。如果您使用 `ansible-galaxy collection install` 安装集合,它将自动安装。如果您通过将集合的文件复制到 ansible-core 可以找到的地方(例如克隆 git 仓库)来安装集合,则如果使用清单插件,则需要确保也安装依赖项 (https://github.com/ansible-collections/community.hrobot/pull/101)。
community.mysql
集合版本 2.*.* 已达到生命周期结束,不再回滚错误修复。请考虑升级到最新版本。
containers.podman
为 Podman 模块添加四元组支持
dellemc.openmanage
所有 OME 模块都增强了对环境变量 `OME_USERNAME` 和 `OME_PASSWORD` 的支持,作为凭据的备用。
所有 iDRAC 和 Redfish 模块都增强了对环境变量 `IDRAC_USERNAME` 和 `IDRAC_PASSWORD` 的支持,作为凭据的备用。
idrac_certificates - 模块增强了对导入和导出 `CUSTOMCERTIFICATE` 的支持。
idrac_diagnostics - 引入了该模块以在 iDRAC 上运行和导出诊断信息。
idrac_gather_facts - 此角色增强了对安全启动的支持。
idrac_license - 引入了该模块以配置 iDRAC 许可证。
idrac_session - 此模块允许您创建和删除 iDRAC 上的会话。
idrac_user - 引入了此角色来管理 iDRAC 的本地用户。
dellemc.unity
添加对 Unity Puffin v5.4 的支持。
fortinet.fortios
在 monitor 和 monitor_fact 模块的文档中添加了关于备份模块的说明。
支持新的 FOS 版本 7.4.2 和 7.4.3,并在集合中支持数据类型 mac_address。
将文档和示例中的所有布尔值更新为 true/false。
更新 log_fact 的文档。
将支持版本的文档从最新版本更新为固定的版本号。
使用版本范围更新不匹配的版本消息。
将所需的 ansible 版本更新到 2.14。
将所需的 ansible 版本更新到 2.15。
更新支持的版本范围而不是具体的版本号,以减小集合的大小。
grafana.grafana
由 @voidquark 在 https://github.com/grafana/grafana-ansible-collection/pull/188 中添加了 Grafana Loki 角色
由 @GVengelen 在 https://github.com/grafana/grafana-ansible-collection/pull/183 中添加了 Grafana Mimir 角色
由 @he0s 在 https://github.com/grafana/grafana-ansible-collection/pull/191 中添加了一个新的配置部分来配置基于 KeyCloak 的身份验证
由 @ishanjainn 在 https://github.com/grafana/grafana-ansible-collection/pull/169 中添加了一个用于 Grafana Alloy 的 Ansible 角色
由 @ishanjainn 在 https://github.com/grafana/grafana-ansible-collection/pull/138 中添加了一个用于 OpenTelemetry Collector 的 Ansible 角色
由 @voidquark 在 https://github.com/grafana/grafana-ansible-collection/pull/197 中添加了 promtail 角色
由 @dependabot 在 https://github.com/grafana/grafana-ansible-collection/pull/195 中将 ansible-lint 从 24.2.2 升级到 24.2.3
ibm.qradar
将`requires_ansible` 升级到 `>=2.14.0`,因为之前的 ansible-core 版本已达到生命周期结束。
infoblox.nios_modules
将 Ansible 版本支持从 2.13 升级到 2.16。
将 Python 版本支持从 3.8 升级到 3.10。
junipernetworks.junos
将`requires_ansible` 升级到 `>=2.14.0`,因为之前的 ansible-core 版本已达到生命周期结束。
此版本移除了此集合中之前已弃用的模块。有关详细信息,请参阅**已移除的功能**部分。
将 netcommon 基础版本更新到 6.1.0 以支持 cli_restore 插件。
splunk.es
将`requires_ansible` 升级到 `>=2.14.0`,因为之前的 ansible-core 版本已达到生命周期结束。
已移除的集合
community.azure(以前包含的版本:2.0.0)
community.sap(以前包含的版本:2.0.0)
gluster.gluster(以前包含的版本:1.0.2)
hpe.nimble(以前包含的版本:1.1.4)
netapp.aws(以前包含的版本:21.7.1)
netapp.azure(以前包含的版本:21.10.1)
netapp.elementsw(以前包含的版本:21.7.0)
netapp.um_info(以前包含的版本:21.8.1)
purestorage.fusion(以前包含的版本:1.6.0)
已移除的功能
`community.azure` 集合被认为是未维护的,已从 Ansible 10 中移除 (https://github.com/ansible-community/community-topics/issues/263)。用户仍然可以使用 `ansible-galaxy collection install community.azure` 安装此集合。
`gluster.gluster` 集合被认为是未维护的,已从 Ansible 10 中移除 (https://github.com/ansible-community/community-topics/issues/225)。用户仍然可以使用 `ansible-galaxy collection install gluster.gluster` 安装此集合。
`hpe.nimble` 集合被认为是未维护的,已从 Ansible 10 中移除 (https://github.com/ansible-community/community-topics/issues/254)。用户仍然可以使用 `ansible-galaxy collection install hpe.nimble` 安装此集合。
`netapp.aws` 集合被认为是未维护的,已从 Ansible 10 中移除 (https://github.com/ansible-community/community-topics/issues/223)。用户仍然可以使用 `ansible-galaxy collection install netapp.aws` 安装此集合。
由于`netapp.azure`集合被认为未维护,已从Ansible 10中移除(https://github.com/ansible-community/community-topics/issues/234)。用户仍然可以使用`ansible-galaxy collection install netapp.azure`安装此集合。
由于`netapp.elementsw`集合被认为未维护,已从Ansible 10中移除(https://github.com/ansible-community/community-topics/issues/235)。用户仍然可以使用`ansible-galaxy collection install netapp.elementsw`安装此集合。
由于`netapp.um_info`集合被认为未维护,已从Ansible 10中移除(https://github.com/ansible-community/community-topics/issues/244)。用户仍然可以使用`ansible-galaxy collection install netapp.um_info`安装此集合。
`community.sap`集合已从Ansible中完全移除。它已重命名为`community.sap_libs`。此集合最终将从Ansible中完全移除。请将您的FQCN从`community.sap`更新为`community.sap_libs`。
已废弃的`purestorage.fusion`集合已被移除(https://forum.ansible.com/t/3712)。
Ansible核心
从ansible-docs中移除已弃用的API(https://github.com/ansible/ansible/issues/81716)。
移除已弃用的JINJA2_NATIVE_WARNING环境变量(https://github.com/ansible/ansible/issues/81714)。
从ssh连接插件中移除已弃用的`scp_if_ssh`(https://github.com/ansible/ansible/issues/81715)。
从ansible.utils.encrypt中移除已弃用的crypt支持(https://github.com/ansible/ansible/issues/81717)。
已移除Python 2.7和Python 3.6作为支持的远程版本。目标执行现在需要Python 3.7及以上版本。
随着Python 2支持的移除,yum模块和yum操作插件已被移除,并重定向到`dnf`。
amazon.aws
iam_role - `iam_role.assume_role_policy_document_raw`的返回值已弃用。`iam_role.assume_role_policy_document`现在返回与`iam_role.assume_role_policy_document_raw`相同的格式(https://github.com/ansible-collections/amazon.aws/pull/2040)。
iam_role_info - `iam_role.assume_role_policy_document_raw`的返回值已弃用。`iam_role.assume_role_policy_document`现在返回与`iam_role.assume_role_policy_document_raw`相同的格式(https://github.com/ansible-collections/amazon.aws/pull/2040)。
module_utils.policy - 之前已弃用的`sort_json_policy_dict()`函数已被移除,请考虑改用`compare_policies()`(https://github.com/ansible-collections/amazon.aws/pull/2052)。
arista.eos
移除已弃用的eos_bgp模块,该模块已被eos_bgp_global和eos_bgp_address_family替换。
移除已弃用的eos_logging模块,该模块已被eos_logging_global资源模块替换。
移除已弃用的timers.throttle属性。
cisco.ios
已弃用ios_ntp模块,建议使用ios_ntp_global。
已移除之前已弃用的ios_bgp模块,建议使用ios_bgp_global和ios_bgp_address_family。
cisco.iosxr
移除已弃用的iosxr_logging模块,该模块已被iosxr_logging_global资源模块替换。
cisco.nxos
此版本已移除nxos_logging模块。
此版本已移除nxos_ntp模块。
此版本已移除nxos_ntp_auth模块。
此版本已移除nxos_ntp_options模块。
community.dns
此集合不再支持在3.0.0版本发布时已达到生命周期结束的Ansible、ansible-base和ansible-core版本。这意味着Ansible 2.9、ansible-base 2.10、ansible-core 2.11、ansible-core 2.12和ansible-core 2.13不再受支持。此集合可能仍然与这些版本一起工作,但随时可能停止工作而无需提前通知,这将不被视为错误(https://github.com/ansible-collections/community.dns/pull/196)。
hetzner_dns_record_set, hetzner_dns_record - 已移除prefix选项的已弃用别名`name`(https://github.com/ansible-collections/community.dns/pull/196)。
hosttech_dns_records - 已移除到`hosttech_dns_record_sets`模块的重定向(https://github.com/ansible-collections/community.dns/pull/196)。
community.general
已移除内部模块名称的已弃用重定向。这些内部重定向是超长的FQCN,例如`community.general.packaging.os.apt_rpm`,它重定向到短FQCN `community.general.apt_rpm`。它们最初是需要实现flatmapping;由于各种工具开始建议用户使用长名称,flatmapping已从集合中移除,并为已遵循这些不正确建议的用户添加了重定向(https://github.com/ansible-collections/community.general/pull/7835)。
ansible_galaxy_install - 已移除`ack_ansible29`和`ack_min_ansiblecore211`选项。它们不再有任何作用(https://github.com/ansible-collections/community.general/pull/8198)。
cloudflare_dns - 移除了对SPF记录的支持。CloudFlare不再支持这些记录(https://github.com/ansible-collections/community.general/pull/7782)。
django_manage - 已移除对`command`值`cleanup`、`syncdb`和`validate`的支持。分别使用`clearsessions`、`migrate`和`check`代替(https://github.com/ansible-collections/community.general/pull/8198)。
flowdock - 此模块依赖于不再存在的HTTPS API,因此已被移除(https://github.com/ansible-collections/community.general/pull/8198)。
mh.mixins.deps模块实用程序 - 已移除`DependencyMixin`。请改用`deps`模块实用程序(https://github.com/ansible-collections/community.general/pull/8198)。
proxmox - 已移除`proxmox_default_behavior`选项(https://github.com/ansible-collections/community.general/pull/8198)。
rax*模块、rax模块实用程序、rax文档片段 - Rackspace模块依赖于已弃用的包`pyrax`,因此已被移除(https://github.com/ansible-collections/community.general/pull/8198)。
redhat模块实用程序 - 已移除`Rhsm`、`RhsmPool`和`RhsmPools`类(https://github.com/ansible-collections/community.general/pull/8198)。
redhat_subscription - 已移除`auto_attach`选项的别名`autosubscribe`(https://github.com/ansible-collections/community.general/pull/8198)。
stackdriver - 此模块依赖于不再存在的HTTPS API,因此已被移除(https://github.com/ansible-collections/community.general/pull/8198)。
webfaction_*模块 - 这些模块依赖于不再存在的HTTPS API,因此已被移除(https://github.com/ansible-collections/community.general/pull/8198)。
community.grafana
移除了`grafana_dashboard`中已弃用的`message`参数。
community.hrobot
本集合不再支持在 2.0.0 版本发布时已达到生命周期结束 (End of Life) 的 Ansible、ansible-base 和 ansible-core 版本。这意味着 Ansible 2.9、ansible-base 2.10、ansible-core 2.11、ansible-core 2.12 和 ansible-core 2.13 将不再受支持。本集合可能仍然可以与这些版本一起工作,但它随时可能停止工作,恕不另行通知,这将不被视为错误 (https://github.com/ansible-collections/community.hrobot/pull/101).
junipernetworks.junos
移除已弃用的 junos_logging 模块,该模块已被 junos_logging_global 资源模块替代。
已弃用的功能
inspur.sm
集合被认为是未维护的,如果在 Ansible 11 之前没有人开始再次维护它,它将从 Ansible 11 中删除。有关更多详细信息,包括如何取消此操作,请参阅 未维护集合的集合删除流程 (https://forum.ansible.com/t/2854).netapp.storagegrid
集合被认为是未维护的,如果在 Ansible 11 之前没有人开始再次维护它,它将从 Ansible 11 中删除。有关更多详细信息,包括如何取消此操作,请参阅 未维护集合的集合删除流程 (https://forum.ansible.com/t/2811).
Ansible-core
使用入口点 get_host_vars 或 get_group_vars 的旧样式 vars 插件已弃用。插件应更新为继承自 BaseVarsPlugin 并定义 get_vars 方法作为入口点。
ansible.module_utils.common.process.get_bin_path
API 中的“required”参数已弃用 (https://github.com/ansible/ansible/issues/82464).module_utils
- 从ansible.module_utils.basic
导入以下便捷助手已被弃用:get_exception
、literal_eval
、_literal_eval
、datetime
、signal
、types
、chain
、repeat
、PY2
、PY3
、b
、binary_type
、integer_types
、iteritems
、string_types
、test_type
、map
和shlex_quote
。ansible-doc - 角色入口点属性已弃用,最终将在 Ansible-core 2.20 及更高版本中不再显示在 ansible-doc 中 (https://github.com/ansible/ansible/issues/82639,https://github.com/ansible/ansible/pull/82678).
paramiko 连接插件,全局范围内的配置项已被弃用,并将被删除,取而代之的是插件本身中现有的相同选项。用户无需更改任何内容(配置方式相同),但使用全局常量的插件作者应改用插件的 get_option()。
amazon.aws
aws_ec2 库存插件 - 已将先前弃用的
include_extra_api_calls
选项的删除分配给 9.0.0 版本 (https://github.com/ansible-collections/amazon.aws/pull/2040).cloudformation -
template
参数已弃用,并将在 2026-05-01 之后的一个版本中删除。可以将template_body
参数与查找插件结合使用 (https://github.com/ansible-collections/amazon.aws/pull/2048).iam_policy - 已将先前弃用的
policies
返回键的删除分配给 9.0.0 版本。请改用policy_names
返回键 (https://github.com/ansible-collections/amazon.aws/pull/2040).iam_role_info - 在 2026-05-01 之后的一个版本中,路径必须以
/
开头和结尾 (https://github.com/ansible-collections/amazon.aws/pull/1998).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).rds_param_group -
rds_param_group
模块已重命名为rds_instance_param_group
。模块的使用方式没有改变。rds_param_group 别名将在 10.0.0 版本中删除 (https://github.com/ansible-collections/amazon.aws/pull/2058).
community.aws
aws_glue_connection - 将
connection_parameters
返回键的删除弃用更新为从after 2024-06-01
到版本9.0.0
,它将被raw_connection_parameters
键替换 (https://github.com/ansible-collections/community.aws/pull/518).ecs_cluster - 更新了
purge_capacity_providers
更新默认值的弃用说明,当前的默认值False
将在9.0.0
版本中更改为True
。要保持当前行为,请显式设置purge_capacity_providers=False
(https://github.com/ansible-collections/community.aws/pull/1640).ecs_service - 更新了
purge_placement_constraints
更新默认值的弃用说明,当前的默认值False
将在9.0.0
版本中更改为True
。要保持当前行为,请显式设置purge_placement_constraints=False
(https://github.com/ansible-collections/community.aws/pull/1716).ecs_service - 更新了
purge_placement_strategy
更新默认值的弃用说明,当前的默认值False
将在9.0.0
版本中更改为True
。要保持当前行为,请显式设置purge_placement_strategy=False
(https://github.com/ansible-collections/community.aws/pull/1716).
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 开始,所有
CryptoBackend
的实现都必须重写get_ordered_csr_identifiers()
方法。当前的默认实现(简单地对get_csr_identifiers()
的结果进行排序)将被移除(https://github.com/ansible-collections/community.crypto/pull/725)。acme.backends 模块实用程序 - ACME 加密后端的
get_cert_information()
方法必须从 community.crypto 3.0.0 版本开始实现(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)。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)。
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_compose - Docker Compose v1 模块已弃用,并将从 community.docker 4.0.0 版本中移除。请迁移到
community.docker.docker_compose_v2
模块,该模块可与 Docker Compose v2 一起使用(https://github.com/ansible-collections/community.docker/issues/823,https://github.com/ansible-collections/community.docker/pull/833)。docker_container -
image_name_mismatch
参数的默认ignore
值已弃用,将在 community.docker 4.0.0 版本中切换为recreate
。在使用默认值且更改默认值后行为会发生变化的情况下,将打印弃用警告(https://github.com/ansible-collections/community.docker/pull/703)。各种模块和插件 -
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)。
community.general
MH DependencyCtxMgr module_utils - 弃用
module_utils.mh.mixin.deps.DependencyCtxMgr
,建议使用module_utils.deps
(https://github.com/ansible-collections/community.general/pull/8280)。ModuleHelper module_utils - 弃用
plugins.module_utils.module_helper.AnsibleModule
(https://github.com/ansible-collections/community.general/pull/8280)。ModuleHelper module_utils - 弃用
plugins.module_utils.module_helper.DependencyCtxMgr
(https://github.com/ansible-collections/community.general/pull/8280)。ModuleHelper module_utils - 弃用
plugins.module_utils.module_helper.StateMixin
(https://github.com/ansible-collections/community.general/pull/8280)。ModuleHelper module_utils - 弃用
plugins.module_utils.module_helper.VarDict,
(https://github.com/ansible-collections/community.general/pull/8280)。ModuleHelper module_utils - 弃用
plugins.module_utils.module_helper.VarMeta
(https://github.com/ansible-collections/community.general/pull/8280)。ModuleHelper module_utils - 弃用
plugins.module_utils.module_helper.VarsMixin
(https://github.com/ansible-collections/community.general/pull/8280)。ModuleHelper module_utils - 弃用
VarsMixin
的使用,建议使用VardDict
module_utils(https://github.com/ansible-collections/community.general/pull/8226)。ModuleHelper vars module_utils - 将
VarMeta
、VarDict
和VarsMixin
的弃用版本提升到 11.0.0(https://github.com/ansible-collections/community.general/pull/8226)。apt_rpm -
state=present
和state=installed
的行为已弃用,将在 community.general 11.0.0 版本中更改。目前,如果使用这两个状态之一,模块会将包升级到最新版本。如果您想要此行为,则应显式使用state=latest
,如果不想在包已安装的情况下升级包,则应切换到state=present_not_latest
。在 community.general 11.0.0 版本中,state=present
和state=installed
的行为将更改为state=present_not_latest
的行为(https://github.com/ansible-collections/community.general/issues/8217,https://github.com/ansible-collections/community.general/pull/8285)。consul_acl - 该模块已弃用,并将从 community.general 10.0.0 版本中移除。
consul_token
和consul_policy
可以替代使用(https://github.com/ansible-collections/community.general/pull/7901)。django_manage -
ack_venv_creation_deprecation
选项不再有效,并将从 community.general 11.0.0 版本中移除(https://github.com/ansible-collections/community.general/pull/8198)。gitlab 模块 - GitLab API 上的基本身份验证方法已弃用,并将从 community.general 10.0.0 版本中移除(https://github.com/ansible-collections/community.general/pull/8383)。
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)。
irc -
use_tls
和validate_certs
的默认值false
已弃用,将在 community.general 10.0.0 版本中更改为true
以提高安全性。您现在可以通过显式地将它们设置为true
来提高安全性。现在指定值将禁用弃用警告(https://github.com/ansible-collections/community.general/pull/7578)。
community.hrobot
robot 清单插件 -
filters
选项已重命名为simple_filters
。旧名称将在 community.hrobot 2.0.0 版本中停止工作(https://github.com/ansible-collections/community.hrobot/pull/94)。
community.okd
openshift -
openshift
清单插件已弃用,并将从 4.0.0 版本中移除(https://github.com/ansible-collections/kubernetes.core/issues/31)。
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)。
dellemc.openmanage
dellemc_idrac_storage_volume
模块已弃用,并已替换为idrac_storage_volume
。
kubernetes.core
k8s -
k8s
清单插件已弃用,并将从 4.0.0 版本中移除(https://github.com/ansible-collections/kubernetes.core/issues/31)。