Ansible 11 移植指南
Ansible 11 基于 Ansible-core 2.18。
我们建议您阅读此页面以及Ansible 11 更新日志,以了解您可能需要进行哪些更新。
剧本 (Playbook)
无显著更改
命令行
Python 3.10 已不再是受支持的控制节点版本。现在运行 Ansible 需要 Python 3.11+。
Python 3.7 已不再是受支持的远程版本。现在目标执行需要 Python 3.8+。
已弃用
无显著更改
模块 (Modules)
无显著更改
已移除的模块
以下模块不再存在
无显著更改
弃用通知
无显著更改
值得注意的模块更改
无显著更改
插件 (Plugins)
ssh
连接插件现在正式支持连接 Windows 主机。作为此正式支持的一部分,一个重大更改是:由诸如ansible.builtin.raw
之类的插件以及调用_low_level_execute_command
的操作插件执行的底层命令执行不再使用powershell.exe
包装调用。这些命令现在将直接在目标主机上使用 Windows 主机上设置的默认 shell 配置执行。此更改旨在简化 Ansible 端所需的配置,提高模块执行效率,并消除解码 stderr CLIXML 输出的需要。此更改的结果是,ansible.builtin.raw
命令不再保证通过 PowerShell shell 运行,也不保证输出编码为 UTF-8。若要通过 PowerShell 运行命令并支持 UTF-8 输出,请改用ansible.windows.win_shell
或ansible.windows.win_powershell
模块。- name: Run with win_shell ansible.windows.win_shell: Write-Host "Hello, Café" - name: Run with win_powershell ansible.windows.win_powershell: script: Write-Host "Hello, Café"
移植自定义脚本
无显著更改
网络
无显著更改
v11.1.0 移植指南
已知问题
dellemc.openmanage
idrac_diagnostics - 问题 (285322) - 此模块不支持通过 SOCKS 代理将诊断文件导出到 HTTP 和 HTTPS 共享。
idrac_firmware - 问题 (279282) - 此模块不支持使用具有 iDRAC8 上身份验证的 HTTP、HTTPS 和 FTP 共享进行固件更新。
ome_smart_fabric_uplink - 问题 (186024) - 此模块受 OpenManage Enterprise Modular 支持,但是它不允许创建多个同名的上行链路。如果使用与现有上行链路相同的名称创建上行链路,则会修改现有上行链路。
主要更改
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
。
community.general
opkg - 弃用参数
force
的值""
(https://github.com/ansible-collections/community.general/pull/9172).redfish_utils 模块实用程序 - 弃用方法
RedfishUtils._init_session()
(https://github.com/ansible-collections/community.general/pull/9190).
vmware.vmware_rest
content_library_item_info - 此模块已被弃用,并将从 vmware.vmware_rest 5.0.0 中删除
v11.0.0 移植指南
新增集合 (Collections)
ieisystem.inmanage (版本 3.0.0)
kubevirt.core (版本 2.1.0)
vmware.vmware (版本 1.6.0)
已知问题
Ansible-core
ansible-test - 在 Ubuntu 24.04 主机上使用 Podman 使用 ansible-test 容器时,必须以非 root 用户身份运行 ansible-test,以避免 AppArmor 引起的权限问题。
ansible-test - 在 Ubuntu 24.04 主机上使用 Podman 使用 Fedora 40 容器时,必须禁用主机上的
unix-chkpwd
AppArmor 配置文件,以允许 SSH 连接到容器。
ansible.netcommon
libssh - 当要获取的目标文件不存在时,net_put 和 net_get 失败。
community.docker
docker_container - 为容器的网络指定 MAC 地址时,如果在创建容器后附加网络(例如,由于幂等性检查),则 Docker Daemon 至少在某些情况下会忽略 MAC 地址 (https://github.com/ansible-collections/community.docker/pull/933).
community.general
jenkins_node - 由于内部使用 toggleOffline API,此模块无法在节点已因离线而离线时更新离线消息 (https://github.com/ansible-collections/community.general/pull/9084).
dellemc.openmanage
idrac_diagnostics - 问题 (285322) - 此模块不支持通过 SOCKS 代理将诊断文件导出到 HTTP 和 HTTPS 共享。
idrac_firmware - 问题 (279282) - 此模块不支持使用具有 iDRAC8 上身份验证的 HTTP、HTTPS 和 FTP 共享进行固件更新。
idrac_storage_volume - 问题 (290766) - 如果虚拟磁盘已存在于同一控制器上,则该模块将报告成功而不是显示在 BOSS-N1 控制器上创建新虚拟的失败。
idrac_support_assist - 问题 (308550) - 当 NFS 共享路径包含子目录时,此模块将失败。
ome_diagnostics - 问题 (279193) - 将 SupportAssist 收集的日志导出到共享位置在 OME 4.0.0 版本上失败。
ome_smart_fabric_uplink - 问题 (186024) - 此模块受 OpenManage Enterprise Modular 支持,但是它不允许创建多个同名的上行链路。如果使用与现有上行链路相同的名称创建上行链路,则会修改现有上行链路。
重大更改
Ansible-core
已停止将发送到 Windows 目标的所有 SSH 命令包装在
powershell.exe
可执行文件中。这使得每个命令在 Windows 上启动的进程减少一个,从而提高效率,简化代码,并使raw
真正成为使用 Windows sshd 设置中配置的默认 shell 运行的原始命令。这除了raw
之外对大多数任务应该没有影响,现在不能保证raw
始终在 PowerShell shell 中运行,并且控制台输出代码页设置为 UTF-8。为避免此问题,请切换到使用ansible.windows.win_command
、ansible.windows.win_shell
、ansible.windows.win_powershell
,或手动将原始命令与设置输出控制台编码所需的 shell 命令一起包装。持久连接插件 -
ANSIBLE_CONNECTION_PATH
配置选项不再有任何作用。
amazon.aws
amazon.aws 集合已放弃对
botocore<1.31.0
和boto3<1.28.0
的支持。大多数模块将继续与较旧版本的 AWS SDK 兼容。但是,不能保证与较旧版本的 SDK 的兼容性,并且不会对其进行测试。使用较旧版本的 SDK 时,Ansible 将发出警告 (https://github.com/ansible-collections/amazon.aws/pull/2161)。aws_ec2 - 参数
include_extra_api_calls
之前已弃用,现已删除 (https://github.com/ansible-collections/amazon.aws/pull/2320)。iam_policy -
policies
返回键之前已弃用,现已删除,请改用policy_names
(https://github.com/ansible-collections/amazon.aws/pull/2320)。module_utils.botocore -
boto3_conn
的conn_type
参数现在是必需的 (https://github.com/ansible-collections/amazon.aws/pull/2157)。
cloud.common
cloud.common 集合 - 已放弃对 ansible-core < 2.15 的支持 (https://github.com/ansible-collections/cloud.common/pull/145/files)。
community.aws
community.aws 集合已放弃对
botocore<1.31.0
和boto3<1.28.0
的支持。大多数模块将继续与较旧版本的 AWS SDK 兼容。但是,不能保证与较旧版本的 SDK 的兼容性,并且不会对其进行测试。使用较旧版本的 SDK 时,Ansible 将发出警告 (https://github.com/ansible-collections/community.aws/pull/2195)。autoscaling_instance_refresh - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.autoscaling_instance_refresh
(https://github.com/ansible-collections/community.aws/pull/2177)。autoscaling_instance_refresh_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.autoscaling_instance_refresh_info
(https://github.com/ansible-collections/community.aws/pull/2177)。ec2_launch_template - 使用选项
tags
定义的标签现在应用于启动模板资源,而不是使用此启动模板创建的资源 (https://github.com/ansible-collections/community.aws/issues/176)。ec2_launch_template - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_launch_template
(https://github.com/ansible-collections/community.aws/pull/2185)。ec2_placement_group - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_placement_group
。ec2_placement_group_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_placement_group_info
。ec2_transit_gateway - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_transit_gateway
。ec2_transit_gateway_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_transit_gateway_info
。ec2_transit_gateway_vpc_attachment - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_transit_gateway_vpc_attachment
。ec2_transit_gateway_vpc_attachment_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_transit_gateway_vpc_attachment_info
。ec2_vpc_egress_igw - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_vpc_egress_igw
(https://api.github.com/repos/ansible-collections/community.aws/pulls/2169)。ec2_vpc_nacl - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_vpc_nacl
(https://github.com/ansible-collections/community.aws/pull/2178)。ec2_vpc_nacl_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_vpc_nacl_info
(https://github.com/ansible-collections/community.aws/pull/2178)。ec2_vpc_peer - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_vpc_peer
。ec2_vpc_peering_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_vpc_peering_info
。ec2_vpc_vgw - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_vpc_vgw
。ec2_vpc_vgw_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_vpc_vgw_info
。ec2_vpc_vpn - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_vpc_vpn
。ec2_vpc_vpn_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_vpc_vpn_info
。ecs_cluster - 参数
purge_capacity_providers
默认值为 true。(https://github.com/ansible-collections/community.aws/pull/2165)。elb_classic_lb_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.elb_classic_lb_info
。iam_policy 模块 - 之前已弃用的
connection_properties
返回键已移除,请改用raw_connection_properties
代替 (https://github.com/ansible-collections/community.aws/pull/2165).
community.docker
docker_container 模块 -
image_name_mismatch
的默认值已从ignore
更改为recreate
(https://github.com/ansible-collections/community.docker/pull/971).
community.general
该集合不再支持 ansible-core 2.13 和 ansible-core 2.14。虽然大多数(甚至所有)模块和插件可能仍然可以与这些版本一起使用,但它们不再在 CI 中进行测试,并且与它们相关的故障将不会被修复 (https://github.com/ansible-collections/community.general/pull/8921).
cmd_runner 模块实用程序 - 不再为直接从模块参数创建的 CLI 参数分配默认格式化程序 (https://github.com/ansible-collections/community.general/pull/8928).
irc 模块 -
use_tls
和validate_certs
的默认值已从false
更改为true
(https://github.com/ansible-collections/community.general/pull/8918).rhsm_repository 模块 - 已移除
present
和absent
状态。请改用enabled
和disabled
代替 (https://github.com/ansible-collections/community.general/pull/8918).
community.routeros
command 模块 - 该模块不再声明它支持检查模式 (https://github.com/ansible-collections/community.routeros/pull/318).
community.vmware
添加对
vmware.vmware
集合的依赖 (https://github.com/ansible-collections/community.vmware/pull/2159).依赖于
vmware-vcenter
和vmware-vapi-common-client
,而不是https://github.com/vmware/vsphere-automation-sdk-python.git
(https://github.com/ansible-collections/community.vmware/pull/2163).放弃对 pyVmomi < 8.0.3.0.1 的支持 (https://github.com/ansible-collections/community.vmware/pull/2163).
模块实用程序 - 已移除
vmware.run_command_in_guest()
(https://github.com/ansible-collections/community.vmware/pull/2175).移除对 ansible-core 版本 < 2.17.0 的支持。
vmware_dvs_portgroup 模块 - 移除
security_override
对mac_management_override
的别名以及对securityPolicyOverrideAllowed
的支持,后者已在 vSphere API 中弃用 (https://github.com/ansible-collections/community.vmware/issues/1998).vmware_dvs_portgroup_info 模块 - 移除
security_override
,因为它在 vSphere API 中已弃用 (https://github.com/ansible-collections/community.vmware/issues/1998).vmware_guest_tools_info 模块 - 从结果中移除已弃用的
vm_tools_install_status
(https://github.com/ansible-collections/community.vmware/issues/2078).
community.zabbix
所有角色 - 移除对 Centos 7 的支持
所有角色 - 移除对 Python2 的支持
所有角色 - 移除对 Debian 10 的支持。
所有角色 - 移除对 Ubuntu 18.08 (Bionic) 的支持
移除对 Ansible < 2.15 和 Python < 3.9 的支持
移除对 Zabbix 6.2 的支持
移除对 Zabbix 6.2 的支持
zabbix_agent 角色 - 移除对 zabbix_agent_zabbix_alias 的支持。
zabbix_agent 角色 - 移除对 zabbix_get_package 变量的支持。
zabbix_agent 角色 - 移除对 zabbix_sender_package 变量的支持。
zabbix_agent 角色 - 移除对所有 zabbix_agent2_* 变量的支持。
hetzner.hcloud
放弃对 ansible-core 2.14 的支持。
kubernetes.core
移除对
ansible-core<2.15
的支持 (https://github.com/ansible-collections/kubernetes.core/pull/737).
vmware.vmware_rest
移除对 ansible-core <=2.14 的所有支持
主要变更
amazon.aws
autoscaling_instance_refresh 模块 - 该模块已从
community.aws
集合迁移。使用该模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.autoscaling_instance_refresh
(https://github.com/ansible-collections/amazon.aws/pull/2338).autoscaling_instance_refresh_info 模块 - 该模块已从
community.aws
集合迁移。使用该模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.autoscaling_instance_refresh_info
(https://github.com/ansible-collections/amazon.aws/pull/2338).ec2_launch_template 模块 - 该模块已从
community.aws
集合迁移。使用该模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_launch_template
(https://github.com/ansible-collections/amazon.aws/pull/2348).ec2_placement_group - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_placement_group
。ec2_placement_group_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_placement_group_info
。ec2_transit_gateway - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_transit_gateway
。ec2_transit_gateway_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_transit_gateway_info
。ec2_transit_gateway_vpc_attachment - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_transit_gateway_vpc_attachment
。ec2_transit_gateway_vpc_attachment_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_transit_gateway_vpc_attachment_info
。ec2_vpc_egress_igw 模块 - 该模块已从
community.aws
集合迁移。使用该模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_vpc_egress_igw
(https://api.github.com/repos/ansible-collections/amazon.aws/pulls/2327).ec2_vpc_nacl 模块 - 该模块已从
community.aws
集合迁移。使用该模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_vpc_nacl
(https://github.com/ansible-collections/amazon.aws/pull/2339).ec2_vpc_nacl_info 模块 - 该模块已从
community.aws
集合迁移。使用该模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_vpc_nacl_info
(https://github.com/ansible-collections/amazon.aws/pull/2339).ec2_vpc_peer - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_vpc_peer
。ec2_vpc_peering_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_vpc_peering_info
。ec2_vpc_vgw - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_vpc_vgw
。ec2_vpc_vgw_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_vpc_vgw_info
。ec2_vpc_vpn - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_vpc_vpn
。ec2_vpc_vpn_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.ec2_vpc_vpn_info
。elb_classic_lb_info - 该模块已从
community.aws
集合迁移。使用此模块的完全限定集合名称的 Playbook 应更新为使用amazon.aws.elb_classic_lb_info
。
ansible.netcommon
将 requires_ansible 提升至 >=2.15.0,因为之前的 ansible-core 版本已到期。
ansible.posix
放弃对 Ansible 2.9 的支持,ansible-core 2.15 将成为此版本的最低要求版本
ansible.utils
将 requires_ansible 提升至 >=2.15.0,因为之前的 ansible-core 版本已到期。
arista.eos
由于之前的 ansible-core 版本已到期,因此将 requires_ansible 提升至 >=2.15.0。
check_point.mgmt
新的 R82 资源模块
支持部分的相对定位
cisco.asa
将 requires_ansible 提升至 >=2.15.0,因为之前的 ansible-core 版本已到期。
cisco.ios
将 requires_ansible 提升至 >=2.15.0,因为之前的 ansible-core 版本已到期。
cisco.iosxr
将 requires_ansible 提升至 >=2.15.0,因为之前的 ansible-core 版本已到期。
cisco.nxos
将 requires_ansible 提升至 >=2.15.0,因为之前的 ansible-core 版本已到期。
community.vmware
vmware_guest_tools_upgrade 模块 - 替换已弃用的
guest.toolsStatus
(https://github.com/ansible-collections/community.vmware/pull/2174).vmware_vm_shell 模块 - 替换已弃用的
guest.toolsStatus
(https://github.com/ansible-collections/community.vmware/pull/2174).
community.zabbix
所有角色 - 添加对 openSUSE Leap 15 和 SLES 15 的支持。
所有角色 - 将 Zabbix 仓库的安装与所有其他角色分开,并将其链接在一起。
containers.podman
添加卷的挂载和卸载功能
为网络添加多个子网
为 podman_container 添加新的选项
为 pod 模块添加新的选项
添加 podman search 功能
改进 podman_container 中网络的幂等性
重新设计 Podman Pod 模块的幂等性
dellemc.openmanage
添加对使用会话 ID 进行 iDRAC、OpenManage Enterprise 和 OpenManage Enterprise Modular 身份验证的支持。
idrac_secure_boot 模块 - 此模块允许配置属性、导入或导出安全启动证书以及重置密钥。
idrac_secure_boot 模块 - 此模块允许导入安全启动证书。
idrac_server_config_profile 模块 - 此模块已增强,允许您在 iDRAC 上导出和导入自定义默认值。
idrac_support_assist 模块 - 此模块允许运行和导出 iDRAC 上的 SupportAssist 收集日志。
idrac_system_erase 模块 - 此模块允许擦除 iDRAC 上服务器的系统和存储组件。
ome_configuration_compliance_baseline 模块 - 此模块已增强,可以调度补救作业并安排重新启动。
ome_session 模块 - 此模块允许您在 OpenManage Enterprise 和 OpenManage Enterprise Modular 上创建和删除会话。
omevv_firmware_repository_profile - 此模块允许管理固件仓库配置文件。
omevv_firmware_repository_profile_info - 此模块允许检索固件仓库配置文件信息。
omevv_vcenter_info - 此模块允许检索vCenter信息。
fortinet.fortios
添加sanity_test.yaml文件以在GitHub中触发CI测试。
改进SET函数的逻辑,使其先发送GET请求,然后发送PUT或POST请求。
Mantis
支持Ansible-core 2.17。
支持新的FOS版本7.4.4。
支持新的FOS版本7.6.0。
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的支持。
由@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角色进行了改进。
由@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将ansible-lint从24.6.0升级到24.9.2 https://github.com/grafana/grafana-ansible-collection/pull/270
由@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
由@dependabot将pylint从3.2.5升级到3.3.1 https://github.com/grafana/grafana-ansible-collection/pull/273
由@cardasac将config.river更改为config.alloy https://github.com/grafana/grafana-ansible-collection/pull/225
由@pieterlexis-tomtom确保otel collector的检查模式有效 https://github.com/grafana/grafana-ansible-collection/pull/264
由@voidquark修复了基于版本的Grafana统一和传统告警的配置 https://github.com/grafana/grafana-ansible-collection/pull/215
由@Nemental修复了dashboard任务的消息参数 https://github.com/grafana/grafana-ansible-collection/pull/256
由@v-zhuravlev添加了将alloy用户添加到额外组的支持 https://github.com/grafana/grafana-ansible-collection/pull/212
由@Aethylred更新了Alloy变量,使用grafana_alloy_命名空间以确保其唯一性 https://github.com/grafana/grafana-ansible-collection/pull/209
由@aioue更新了README.md https://github.com/grafana/grafana-ansible-collection/pull/272
由@aioue更新了README.md https://github.com/grafana/grafana-ansible-collection/pull/275
由@aioue更新了main.yml https://github.com/grafana/grafana-ansible-collection/pull/274
由@CPreun将result.json[‘message’]更新为result.json()[‘message’] https://github.com/grafana/grafana-ansible-collection/pull/223
由@weakcamel将grafana_plugins_ops添加到默认值和文档中 https://github.com/grafana/grafana-ansible-collection/pull/251
由@copolycube添加了填充google_analytics_4_id值的选择 https://github.com/grafana/grafana-ansible-collection/pull/249
由@copolycube修复了ansible-lint警告:禁止使用隐式八进制值“0640” https://github.com/grafana/grafana-ansible-collection/pull/279
修复:mimir molecule应该使用ansible core 2.16 由@GVengelen提交 https://github.com/grafana/grafana-ansible-collection/pull/254
ibm.qradar
将 requires_ansible 提升至 >=2.15.0,因为之前的 ansible-core 版本已到期。
junipernetworks.junos
将 requires_ansible 提升至 >=2.15.0,因为之前的 ansible-core 版本已到期。
kaytus.ksmanage
添加新的模块system_lock_mode_info, edit_system_lock_mode(https://github.com/ieisystem/kaytus.ksmanage/pull/27).
splunk.es
将 requires_ansible 提升至 >=2.15.0,因为之前的 ansible-core 版本已到期。
vyos.vyos
将 requires_ansible 提升至 >=2.15.0,因为之前的 ansible-core 版本已到期。
已移除的集合
frr.frr (先前包含的版本:2.0.2)
inspur.sm (先前包含的版本:2.3.0)
ngine_io.exoscale (先前包含的版本:1.1.0)
openvswitch.openvswitch (先前包含的版本:2.1.1)
t_systems_mms.icinga_director (先前包含的版本:2.0.1)
已移除的功能
由于
inspur.sm
集合被认为未维护,因此已从Ansible 11中移除 (https://forum.ansible.com/t/2854)。用户仍然可以使用ansible-galaxy collection install inspur.sm
安装此集合。集合
t_systems_mms.icinga_director
已从Ansible中完全移除。它已重命名为telekom_mms.icinga_director
。t_systems_mms.icinga_director
已被Ansible 9.0.0中的弃用重定向替换为telekom_mms.icinga_director
。请将您的FQCN从t_systems_mms.icinga_director
更新为telekom_mms.icinga_director
。已弃用的
frr.frr
集合已被移除 (https://forum.ansible.com/t/6243).已弃用的
ngine_io.exoscale
集合已被移除 (https://forum.ansible.com/t/2572).已弃用的
openvswitch.openvswitch
集合已被移除 (https://forum.ansible.com/t/6245).
Ansible-core
Play - 已移除弃用的
ROLE_CACHE
属性,改用role_cache
。移除弃用的VariableManager._get_delegated_vars方法 (https://github.com/ansible/ansible/issues/82950)
已移除控制器上对Python 3.10的支持。现在需要Python 3.11或更高版本。
已移除对将
vars
关键字设置为字典列表的支持。现在必须是单个字典。loader - 移除弃用的非包容性词汇 (https://github.com/ansible/ansible/issues/82947).
paramiko_ssh - 从paramiko_ssh连接插件中移除弃用的ssh_args (https://github.com/ansible/ansible/issues/82939).
paramiko_ssh - 从paramiko_ssh连接插件中移除弃用的ssh_common_args (https://github.com/ansible/ansible/issues/82940).
paramiko_ssh - 从paramiko_ssh连接插件中移除弃用的ssh_extra_args (https://github.com/ansible/ansible/issues/82941).
play_context - 移除弃用的PlayContext.verbosity属性 (https://github.com/ansible/ansible/issues/82945).
utils/listify - 从listify_lookup_plugin_terms API中移除弃用的“loader”参数 (https://github.com/ansible/ansible/issues/82949).
community.docker
此集合不再支持ansible-core 2.11、2.12、2.13和2.14。您需要ansible-core 2.15.0或更高版本才能使用community.docker 4.x.y (https://github.com/ansible-collections/community.docker/pull/971).
docker_compose模块已被移除。请迁移到community.docker.docker_compose_v2 (https://github.com/ansible-collections/community.docker/pull/971).
docker_container -
ignore_image
选项已被移除。请改用image: ignore
在comparisons
中 (https://github.com/ansible-collections/community.docker/pull/971).docker_container -
purge_networks
选项已被移除。请改用networks: strict
在comparisons
中,并确保已指定networks
(https://github.com/ansible-collections/community.docker/pull/971).各种模块和插件 - 移除
ssl_version
选项 (https://github.com/ansible-collections/community.docker/pull/971).
community.general
consul_acl模块已被移除。请改用community.general.consul_token和/或community.general.consul_policy (https://github.com/ansible-collections/community.general/pull/8921).
Hipchat回调插件已被移除。Hipchat服务已停止,自托管版本自2020年起已停止维护(https://github.com/ansible-collections/community.general/pull/8921)。
Redhat模块实用程序已被移除(https://github.com/ansible-collections/community.general/pull/8921)。
Rhn_channel模块已被移除(https://github.com/ansible-collections/community.general/pull/8921)。
Rhn_register模块已被移除(https://github.com/ansible-collections/community.general/pull/8921)。
Consul - 移除了
ack_params_state_absent
选项。此选项已失效(https://github.com/ansible-collections/community.general/pull/8918)。Ejabberd_user - 移除了
logging
选项(https://github.com/ansible-collections/community.general/pull/8918)。Gitlab模块 - 移除了基本身份验证功能(https://github.com/ansible-collections/community.general/pull/8405)。
Proxmox_kvm - 移除了
proxmox_default_behavior
选项。如果您使用的是proxmox_default_behavior=compatibility
,请显式指定旧的默认值;否则,只需将其移除(https://github.com/ansible-collections/community.general/pull/8918)。Redhat_subscriptions - 移除了
pool
选项。请改用pool_ids
(https://github.com/ansible-collections/community.general/pull/8918)。
community.grafana
移除了grafana_dashboard查找中对损坏API密钥的检查和处理
移除了grafana_dashboard中已弃用的message参数
community.okd
k8s - 4.0.0版本中已移除对
merge_type=json
的支持。请改用kubernetes.core.k8s_json_patch
(https://github.com/openshift/community.okd/pull/226)。
community.routeros
此集合不再支持Ansible 2.9、ansible-base 2.10、ansible-core 2.11、ansible-core 2.12、ansible-core 2.13和ansible-core 2.14。如果您需要继续使用已停止维护的Ansible/ansible-base/ansible-core版本,请使用community.routeros 2.x.y(https://github.com/ansible-collections/community.routeros/pull/318)。
community.sops
此集合不再支持Ansible 2.9、ansible-base 2.10、ansible-core 2.11、ansible-core 2.12、ansible-core 2.13和ansible-core 2.14。如果您需要继续使用已停止维护的Ansible/ansible-base/ansible-core版本,请使用community.sops 1.x.y(https://github.com/ansible-collections/community.sops/pull/206)。
kubernetes.core
k8s - 4.0.0版本中已移除对
merge_type=json
的支持。请改用kubernetes.core.k8s_json_patch
(https://github.com/ansible-collections/kubernetes.core/pull/722)。k8s_exec - 已移除之前已弃用的
result.return_code
返回值,请改用result.rc
(https://github.com/ansible-collections/kubernetes.core/pull/726)。module_utils/common.py - 已移除之前已弃用的
K8sAnsibleMixin
类(https://github.com/ansible-collections/kubernetes.core/pull/726)。module_utils/common.py - 已移除之前已弃用的
configuration_digest()
函数(https://github.com/ansible-collections/kubernetes.core/pull/726)。module_utils/common.py - 已移除之前已弃用的
get_api_client()
函数(https://github.com/ansible-collections/kubernetes.core/pull/726)。module_utils/common.py - 已移除之前已弃用的
unique_string()
函数(https://github.com/ansible-collections/kubernetes.core/pull/726)。
已弃用的功能
community.network
集合已弃用。如果在Ansible 12之前没有人开始再次维护它,它将从Ansible 12中删除。有关详细信息,请参见未维护集合的集合移除流程(https://forum.ansible.com/t/8030)。由于违反了Ansible包含要求,google.cloud集合将从Ansible 12中删除。该集合存在未解决的健全性测试失败。有关详细信息(包括如何取消此操作),请参见不满足集合要求的集合移除流程(https://forum.ansible.com/t/8609)。
由于违反了Ansible包含要求,sensu.sensu_go集合将从Ansible 12中删除。该集合存在未解决的健全性测试失败。有关详细信息(包括如何取消此操作),请参见不满足集合要求的集合移除流程(https://forum.ansible.com/t/8380)。
Ansible-core
已弃用
ansible.module_utils.basic.AnsibleModule.safe_eval
和ansible.module_utils.common.safe_eval
,因为它们不再使用。持久连接插件 -
ANSIBLE_CONNECTION_PATH
配置选项已失效,将在未来版本中移除。yum_repository - 已弃用
async
选项,因为它已在RHEL 8中移除,并将从ansible-core 2.22中移除。yum_repository - 以下选项已弃用:
deltarpm_metadata_percentage
、gpgcakey
、http_caching
、keepalive
、metadata_expire_filter
、mirrorlist_expire
、protect
、ssl_check_cert_permissions
、ui_repoid_vars
,因为它们对dnf作为底层包管理器无效。这些选项将在ansible-core 2.22中移除。
amazon.aws
amazon.aws集合 - 由于AWS SDK宣布停止支持Python 3.8以下版本(https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/),此集合对Python 3.8以下版本的支持已被弃用,并将从10.0.0版本中移除(https://github.com/ansible-collections/amazon.aws/pull/2161)。
ec2_vpc_peer -
ec2_vpc_peer
模块已重命名为ec2_vpc_peering
。模块的使用方式没有改变。ec2_vpc_peer别名将在13.0.0版本中移除(https://github.com/ansible-collections/amazon.aws/pull/2356)。ec2_vpc_peering_info -
result
返回值键已弃用,并将从11.0.0版本中移除。请改用vpc_peering_connections
返回值键(https://github.com/ansible-collections/amazon.aws/pull/2359)。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)。s3_object - 对
mode=list
的支持已被弃用。应改用amazon.aws.s3_object_info
(https://github.com/ansible-collections/amazon.aws/pull/2328)。
cisco.ios
ios_bgp_address_family - 已弃用属性password,改为在neigbhors中使用password_options。
ios_bgp_global - 已弃用属性aggregate_address、bestpath、inject_map、ipv4_with_subnet、ipv6_with_subnet、nopeerup_delay、distribute_list、address、tag、ipv6_addresses、password、route_map、route_server_context和scope。
ios_linkagg - 已弃用旧版模块ios_linkagg。
ios_lldp - 已弃用旧版模块ios_lldp。
community.aws
community.aws 集合 - 由于 AWS SDK 宣布停止支持低于 3.8 版本的 Python(https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/),此集合对低于 3.8 版本的 Python 的支持已被弃用,并将从 10.0.0 版本中移除(https://github.com/ansible-collections/community.aws/pull/2195)。
community.docker
此集合弃用对所有当前已结束生命周期的 ansible-core 版本的支持,根据 ansible-core 支持矩阵。这意味着该集合的下一个主要版本将不再支持 ansible-core 2.11、ansible-core 2.12、ansible-core 2.13 和 ansible-core 2.14。
community.general
CmdRunner 模块实用程序 - 在
CmdRunner
上下文中设置ignore_none
参数的值已被弃用,并且该功能应从 community.general 12.0.0 中移除(https://github.com/ansible-collections/community.general/pull/8479)。MH 装饰器 cause_changes 模块实用程序 - 弃用参数
on_success
和on_failure
(https://github.com/ansible-collections/community.general/pull/8791)。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)。hipchat - hipchat 服务已停止运营,自托管版本自 2020 年以来也已结束生命周期。因此,该模块已被弃用,如果没有人提供令人信服的理由继续保留它,则将在 community.general 11.0.0 中将其移除(https://github.com/ansible-collections/community.general/pull/8919)。
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.grafana
弃用 grafana_notification_channel。它将在 3.0.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.network
此集合及其中的所有内容均未维护且已弃用(https://forum.ansible.com/t/8030)。如果您有兴趣维护集合的某些部分,请将其复制到您自己的存储库中,并在论坛讨论中告知其他人。有关详细信息,请参阅集合创建者路径。
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。
community.vmware
vmware_cluster - 该模块已被弃用,并将从 community.vmware 6.0.0 中移除(https://github.com/ansible-collections/community.vmware/pull/2143)。
vmware_cluster_dpm - 该模块已被弃用,并将从 community.vmware 6.0.0 中移除(https://github.com/ansible-collections/community.vmware/pull/2217)。
vmware_cluster_drs - 该模块已被弃用,并将从 community.vmware 6.0.0 中移除(https://github.com/ansible-collections/community.vmware/pull/2136)。
vmware_cluster_drs_recommendations - 该模块已被弃用,并将从 community.vmware 6.0.0 中移除(https://github.com/ansible-collections/community.vmware/pull/2218)。
vmware_cluster_vcls - 该模块已被弃用,并将从 community.vmware 6.0.0 中移除(https://github.com/ansible-collections/community.vmware/pull/2156)。