Ansible 4 移植指南
我们建议您阅读此页面以及Ansible 4 更新日志,以了解您可能需要进行的更新。
Playbook
jinja2_native
设置现在不影响隐式返回字符串的模板模块。对于模板查找,有一个新的参数jinja2_native
(默认关闭)来控制该功能。其余的 Jinja2 表达式仍然基于jinja2_native
设置运行。
命令行
删除了
ansible-galaxy login
命令,因为它用于 GitHub 身份验证的底层 API 已被关闭。现在,使用ansible-galaxy
将角色或集合发布到 Galaxy 需要将 Galaxy API 令牌传递给 CLI,可以使用令牌文件(默认位置~/.ansible/galaxy_token
)或(不安全地)使用ansible-galaxy
的--token
参数。
已弃用
常量 ansible.module_utils.basic._CHECK_ARGUMENT_TYPES_DISPATCHER
已弃用。请改用 ansible.module_utils.common.parameters.DEFAULT_TYPE_VALIDATORS
。
重大更改
对 AnsibleModule
的更改
随着向使用 ArgumentSpecValidator
执行参数规范验证的过渡,AnsibleModule
中的以下私有方法已被删除
_check_argument_types()
_check_argument_values()
_check_arguments()
_check_mutually_exclusive()
–>ansible.module_utils.common.validation.check_mutually_exclusive()
_check_required_arguments()
–>ansible.module_utils.common.validation.check_required_arguments()
_check_required_by()
–>ansible.module_utils.common.validation.check_required_by()
_check_required_if()
–>ansible.module_utils.common.validation.check_required_if()
_check_required_one_of()
–>ansible.module_utils.common.validation.check_required_one_of()
_check_required_together()
–>ansible.module_utils.common.validation.check_required_together()
_check_type_bits()
–>ansible.module_utils.common.validation.check_type_bits()
_check_type_bool()
–>ansible.module_utils.common.validation.check_type_bool()
_check_type_bytes()
–>ansible.module_utils.common.validation.check_type_bytes()
_check_type_dict()
–>ansible.module_utils.common.validation.check_type_dict()
_check_type_float()
–>ansible.module_utils.common.validation.check_type_float()
_check_type_int()
–>ansible.module_utils.common.validation.check_type_int()
_check_type_jsonarg()
–>ansible.module_utils.common.validation.check_type_jsonarg()
_check_type_list()
–>ansible.module_utils.common.validation.check_type_list()
_check_type_path()
–>ansible.module_utils.common.validation.check_type_path()
_check_type_raw()
–>ansible.module_utils.common.validation.check_type_raw()
_check_type_str()
–>ansible.module_utils.common.validation.check_type_str()
_count_terms()
–>ansible.module_utils.common.validation.count_terms()
_get_wanted_type()
_handle_aliases()
_handle_no_log_values()
_handle_options()
_set_defaults()
_set_fallbacks()
使用这些私有方法的模块或插件应使用 ansible.module_utils.common.validation
中的公共函数,或者如果没有列出公共函数,则使用 ArgumentSpecValidator.validate()
。
对 ansible.module_utils.common.parameters
的更改
ansible.module_utils.common.parameters
中的以下函数现在是私有的,不应直接使用。请改用 ArgumentSpecValidator.validate()
。
list_no_log_values
list_deprecations
handle_aliases
其他
升级: 如果您从
ansible < 2.10
或从ansible-base
升级并且使用 pip,您必须在安装ansible-core
之前pip uninstall ansible
或pip uninstall ansible-base
,以避免冲突。控制器节点上的 Python 3.8 是此版本的软性要求。
ansible-core
2.11 仍然可以使用与ansible-base
2.10 相同的 Python 版本,但是当在 Python 版本低于 3.8 的控制器节点上运行时,2.11 会发出警告。可以通过在您的环境中设置ANSIBLE_CONTROLLER_PYTHON_WARNING=False
来禁用此警告。ansible-core
2.12 将需要 Python 3.8 或更高版本。配置系统现在会验证
choices
字段,因此任何违反此字段并且在 2.10 中被忽略的设置都会在 2.11 中导致错误。例如,ANSIBLE_COLLECTIONS_ON_ANSIBLE_VERSION_MISMATCH=0
现在会导致错误(有效选择是ignore
、warn
或error
)。ansible-galaxy
命令现在使用resolvelib
来解析依赖项。在大多数情况下,这不应该给用户带来任何明显的差异,除了性能更高之外,但我们在这里注明它以供参考和完整性。如果您将 Python
module_utils
导入到您维护的任何模块中,您现在可以通过将import
语句包装在try
或if
块中,在模块有效负载构建期间将导入标记为可选。这允许模块使用可能在所有 Ansible 或集合版本中不存在的module_utils
,并在模块运行时执行任意恢复或回退操作。
模块
apt_key
模块已明确定义file
与data
、keyserver
和url
互斥。它们不能再一起使用。meta
模块现在支持用户定义的任务的标签。将任务的标签设置为“always”以保持之前的行为。内部meta
任务继续始终运行。
移除的模块
以下模块不再存在
没有值得注意的更改
弃用通知
没有值得注意的更改
值得注意的模块更改
facts - 在 NetBSD 上,当虚拟化且未在 Xen 上运行时,
ansible_virtualization_type
现在会尝试报告比xen
更准确的结果。facts - 虚拟化事实现在包括
virtualization_tech_guest
和virtualization_tech_host
键。这些分别是 guest 所属的虚拟化技术列表,以及 host 提供的虚拟化技术列表。例如,如果您设置一个 host 同时提供 KVM 和 VirtualBox,则这两个值都包含在virtualization_tech_host
中。同样,在由 KVM 支持的 VM 上运行的 podman 容器的virtualization_tech_guest
为["kvm", "podman", "container"]
。为了使用多个过滤器,setup 模块中
filter
参数的类型从string
更改为list
。之前的行为(使用string
)仍然保留并作为单个过滤器工作。
插件
inventory plugins -
CachePluginAdjudicator.flush()
现在调用底层缓存插件的flush()
,而不是仅删除它所知道的键。Inventory 插件应使用delete()
来删除任何特定的键。作为用户,这意味着当 inventory 插件调用其clear_cache()
方法时,事实也可能会从缓存中刷新。为了解决这个问题,用户可以将 inventory 插件配置为使用独立于事实缓存的缓存后端。callback plugins -
meta
任务执行现在像任何其他任务一样发送到v2_playbook_on_task_start
。默认情况下,只有显式的 meta 任务才会发送到那里。回调插件可以选择接收内部隐式创建的任务,以便也对这些任务执行操作,如插件开发文档中所述。现在验证
choices
,因此,如果提供的值不匹配,则使用不正确或不完整的 choices 的插件会在 2.11 中发出错误。这有一个简单的修复方法:更新choices
中的条目以匹配实际情况。
移植自定义脚本
没有值得注意的更改
v4.10.0 的移植指南
重大更改
containers.podman
添加 podman_tag 模块
添加 secrets 驱动和驱动选项支持
已弃用功能
cisco.nxos
已弃用 nxos_snmp_community 模块。
已弃用 nxos_snmp_contact 模块。
已弃用 nxos_snmp_host 模块。
已弃用 nxos_snmp_location 模块。
已弃用 nxos_snmp_traps 模块。
已弃用 nxos_snmp_user 模块。
junipernetworks.junos
‘router_id’ 选项在 junos_ospf_interfaces、junos_ospfv2 和 junos_ospfv3 资源模块中已弃用。
v4.9.0 的移植指南
已知问题
purestorage.flashblade
purefb_lag - 响应中的 mac_address 字段未填充。 这将在未来的 FlashBlade 更新中修复。
重大变更
fortinet.fortios
在一些配置模块的示例部分中添加真实用例。
收集模块的当前配置,并将其转换为 playbook。
支持 FortiOS 7.0.1。
支持在具有成员列表的对象上进行成员操作(删除/添加额外成员)。
在
fortios_monitor_fact
和fortios_log_fact
中支持选择器功能。
v4.8.0 的移植指南
重大更改
community.zabbix
所有角色现在通过其完全限定的集合名称引用其他角色和模块,这使得 Ansible 2.10 成为角色支持的最低版本(请参阅 issue 477)。
已弃用功能
community.azure
所有 community.azure.azure_rm_<resource>_facts 模块都已弃用。请改用 azure.azcollection.azure_rm_<resource>_info 模块(https://github.com/ansible-collections/community.azure/pull/24)。
所有 community.azure.azure_rm_<resource>_info 模块都已弃用。请改用 azure.azcollection.azure_rm_<resource>_info 模块(https://github.com/ansible-collections/community.azure/pull/24)。
community.azure.azure_rm_managed_disk 和 community.azure.azure_rm_manageddisk 已弃用。请改用 azure.azcollection.azure_rm_manageddisk(https://github.com/ansible-collections/community.azure/pull/24)。
community.azure.azure_rm_virtualmachine_extension 和 community.azure.azure_rm_virtualmachineextension 已弃用。请改用 azure.azcollection.azure_rm_virtualmachineextension(https://github.com/ansible-collections/community.azure/pull/24)。
community.azure.azure_rm_virtualmachine_scaleset 和 community.azure.azure_rm_virtualmachinescaleset 已弃用。请改用 azure.azcollection.azure_rm_virtualmachinescaleset(https://github.com/ansible-collections/community.azure/pull/24)。
community.hashi_vault
lookup hashi_vault -
[lookup_hashi_vault]
部分在ansible.cfg
文件中已弃用,将在集合版本3.0.0
中删除。相反,可以使用[hashi_vault_collection]
部分,它将适用于未来集合中的所有插件(https://github.com/ansible-collections/community.hashi_vault/pull/144)。
v4.7.0 的移植指南
重大变更
openvswitch.openvswitch
我们错误地将存储库标记为 2.0.0,由于这不是本意并且无法恢复,因此我们发布 2.0.1 以使社区了解主要版本更新。
已弃用功能
cisco.ios
已弃用 ios_ntp 模块。
cisco.nxos
已弃用 nxos_ntp、nxos_ntp_options、nxos_ntp_auth 模块。
community.vmware
vmware_guest_vnc - Sphere 7.0 删除了内置的 VNC 服务器(https://docs.vmware.com/en/VMware-vSphere/7.0/rn/vsphere-esxi-vcenter-server-70-release-notes.html#productsupport)。
junipernetworks.junos
已弃用 ospfv2 资源模块中的 router_id。
v4.6.0 的移植指南
重大变更
containers.podman
为 pod 添加 systemd 生成
为容器生成 systemd 服务文件
gluster.gluster
在启动 gluster 卷之前启用 client.ssl、server.ssl(https://github.com/gluster/gluster-ansible-collection/pull/19)
已弃用功能
community.grafana
grafana_dashboard 查找 - 不再首选提供经过修改的 API 密钥版本。
v4.5.0 的移植指南
重大变更
hetzner.hcloud
引入放置组
ovirt.ovirt
remove_stale_lun - 添加删除过时 LUN 的角色(https://bugzilla.redhat.com/1966873)。
已弃用功能
ansible.netcommon
network_cli - paramiko_ssh 设置
look_for_keys
基于传递给 network_cli 的password
和private_key_file
选项的值自动设置。此选项现在可以显式设置,并且look_for_keys
的自动设置将在 2024-01-01 之后删除(https://github.com/ansible-collections/ansible.netcommon/pull/271)。
cisco.ios
已弃用 ios_bgp,赞成使用 ios_bgp_global 和 ios_bgp_address_family。
删除使用提供程序进行 ansible-test 集成作业的测试。 这有助于我们为迁移到 network-ee 集成测试做准备。
junipernetworks.junos
已弃用 ospfv3 资源模块中的 router_id。
v4.4.0 的移植指南
已知问题
dellemc.openmanage
idrac_user - 问题 (192043) 模块可能会报错,并显示消息
unable to perform the import or export operation because there are pending attribute changes or a configuration job is in progress
。等待作业完成并再次运行该任务。
已弃用功能
cisco.iosxr
iosxr_logging 模块已弃用,赞成使用新的 iosxr_logging_global 资源模块,并将于“2023-08-01”之后的版本中删除。
cisco.nxos
nxos_logging 模块已弃用,赞成使用新的 nxos_logging_global 资源模块,并将于“2023-08-01”之后的版本中删除。
community.docker
docker_container - 新的
command_handling
的默认值compatibility
已弃用,将在 community.docker 3.0.0 中更改为correct
。 在行为将发生更改的情况下,该模块会发出弃用警告。 请注意,ansible-core 只会输出一次弃用警告,因此,如果较早的任务显示了该警告,则可能有更多任务具有此警告,但未显示该警告(https://github.com/ansible-collections/community.docker/pull/186)。
junipernetworks.junos
junos_logging 模块已被弃用,取而代之的是新的 junos_logging_global 资源模块,并将在“2023-08-01”之后的版本中删除。
vyos.vyos
vyos_logging 模块已被弃用,取而代之的是新的 vyos_logging_global 资源模块,并将在“2023-08-01”之后的版本中删除。
v4.3.0 的移植指南
主要变更
netapp.cloudmanager
在 cloudmanager 中的所有模块中添加阶段环境
已弃用的功能
community.hashi_vault
hashi_vault 集合 - 在
community.hashi_vault
的2.0.0
版本中,将不再支持 Python 3.5 (https://github.com/ansible-collections/community.hashi_vault/issues/81)。
v4.2.0 的移植指南
已知问题
dellemc.openmanage
idrac_user - 问题 (192043) 模块可能会报错,并显示消息
unable to perform the import or export operation because there are pending attribute changes or a configuration job is in progress
。等待作业完成并再次运行该任务。ome_smart_fabric_uplink - 问题 (186024) ome_smart_fabric_uplink 模块不允许创建多个同名上行链路,即使 OpenManage Enterprise Modular 支持这样做。如果使用与现有上行链路相同的名称创建上行链路,则会修改现有的上行链路。
主要变更
community.vmware
vmware_object_custom_attributes_info - 添加了一个新模块来收集对象的自定义属性 (https://github.com/ansible-collections/community.vmware/pull/851)。
dellemc.openmanage
idrac_server_config_profile - 添加了通过 HTTP/HTTPS 共享导出和导入服务器配置文件的支持。
ome_device_group - 添加了使用设备的 IP 地址和组 ID 将设备添加到组的支持。
fortinet.fortios
新模块 fortios_monitor_fact。
支持 Fortios 7.0。
支持日志 API。
已弃用的功能
community.kubernetes 集合正在重命名为 kubernetes.core。在 Ansible 5 中,community.kubernetes 将被一个空集合替换,该集合具有所有当前内容到 kubernetes.core 的已弃用重定向。如果您使用的是以
community.kubernetes.
开头的 FQCN,请立即将其更新为kubernetes.core.
。请注意,kubernetes.core 自 Ansible 3.0.0 以来已包含在 Ansible 中 (https://github.com/ansible-community/community-topics/issues/22)。
ansible.windows
win_updates - 弃用了每个过滤更新的
filtered_reason
返回值,而改用filtered_reasons
。这样做是为了显示更新被过滤的所有原因,而不仅仅是第一个原因。win_updates - 弃用了
use_scheduled_task
选项,因为它不再使用。win_updates - 弃用了
whitelist
和blacklist
选项,而改用accept_list
和reject_list
,以符合 Ansible 中用于这些类型选项的新标准。
community.general
ali_instance_info - 标记了已弃用参数
availability_zone
和instance_names
的删除版本 (https://github.com/ansible-collections/community.general/issues/2429)。serverless - 弃用参数
functions
,因为它未在代码中使用 (https://github.com/ansible-collections/community.general/pull/2845)。
community.hashi_vault
hashi_vault 集合 - 在
community.hashi_vault
的2.0.0
版本中,将不再支持 Python 2 (https://github.com/ansible-collections/community.hashi_vault/issues/81)。
v4.1.0 的移植指南
已知问题
dellemc.openmanage
idrac_user - 问题 (192043) 模块可能会报错,并显示消息
unable to perform the import or export operation because there are pending attribute changes or a configuration job is in progress
。等待作业完成并再次运行该任务。ome_smart_fabric_uplink - 问题 (186024) ome_smart_fabric_uplink 模块不允许创建多个同名上行链路,即使 OpenManage Enterprise Modular 支持这样做。如果使用与现有上行链路相同的名称创建上行链路,则会修改现有的上行链路。
主要变更
cloudscale_ch.cloud
添加 custom_image 模块
community.postgresql
postgresql_query - 在 community.postgresql 2.0.0 中,
as_single_query
选项的默认值将更改为yes
(https://github.com/ansible-collections/community.postgresql/issues/85)。
dellemc.openmanage
ome_firmware_baseline - 模块支持检查模式,并允许修改和删除固件基线。
ome_firmware_catalog - 模块支持检查模式,并允许修改和删除固件目录。
fortinet.fortios
改进
fortios_configuration_fact
以便同时使用多个选择器。在所有基于 configurationAPI 的模块中支持
check_mode
。支持过滤事实收集模块
fortios_configuration_fact
和fortios_monitor_fact
。支持在
firewall_central_snat_map
中移动策略。统一监视 API 的架构。
netbox.netbox
packages 现在是必需的 Python 包,并通过 Ansible 2.10+ 安装。
已删除的功能
ansible.windows
win_reboot - 删除了自 Ansible 2.5 以来没有任何作用的
shutdown_timeout
和shutdown_timeout_sec
。
已弃用的功能
ansible.windows
win_reboot - 可以使用
ignore_errors: True
忽略无法访问的主机,此功能将在以后的版本中删除。请改用ignore_unreachable: True
来忽略无法访问的主机。 - https://github.com/ansible-collections/ansible.windows/issues/62
community.docker
docker_* 模块和插件,除了
docker_swarm
连接插件和docker_compose
和docker_stack*` 模块 - 当前 ``localhost
的默认tls_hostname
已被弃用。在 community.docker 2.0.0 中,它将改为从docker_host
计算 (https://github.com/ansible-collections/community.docker/pull/134)。
community.general
所有清单和 Vault 脚本都将从 4.0.0 版本的 community.general 中删除。如果您正在引用它们,请将您的引用更新到新的 contrib-scripts GitHub 存储库,以便您的工作流在 community.general 4.0.0 发布后不会中断 (https://github.com/ansible-collections/community.general/pull/2697)。
nios、nios_next_ip、nios_next_network 查找插件、nios 文档片段以及 nios_host_record、nios_ptr_record、nios_mx_record、nios_fixed_address、nios_zone、nios_member、nios_a_record、nios_aaaa_record、nios_network、nios_dns_view、nios_txt_record、nios_naptr_record、nios_srv_record、nios_cname_record、nios_nsgroup 和 nios_network_view 模块已被弃用,并将从 community.general 5.0.0 中删除。请改为安装 infoblox.nios_modules 集合,并使用其插件和模块 (https://github.com/ansible-collections/community.general/pull/2458)。
vendored 的
ipaddress
副本将在 community.general 4.0.0 中删除。如果您的代码依赖于 vendored 版本的ipaddress
,请切换到 Python 3 标准库中的ipaddress
,或从 pypi 获取 (https://github.com/ansible-collections/community.general/pull/2459)。linode - 参数
backupsenabled
已弃用,将在 community.general 5.0.0 中删除 (https://github.com/ansible-collections/community.general/pull/2410)。lxd 清单插件 - 从 community.general 4.0.0 开始,该插件在使用 Python 2 时将需要安装
ipaddress
。ipaddress
是 Python 3 标准库的一部分,但可以从 pypi 安装用于 Python 2 (https://github.com/ansible-collections/community.general/pull/2459)。scaleway_security_group_rule - 从 community.general 4.0.0 开始,在 Python 2 中使用此模块时,需要安装
ipaddress
。ipaddress
是 Python 3 标准库的一部分,但可以从 pypi 安装到 Python 2 (https://github.com/ansible-collections/community.general/pull/2459)。
inspur.sm
add_ad_group - 此功能将在 inspur.sm.add_ad_group 3.0.0 中移除,并替换为 inspur.sm.ad_group。
add_ldap_group - 此功能将在 inspur.sm.add_ldap_group 3.0.0 中移除,并替换为 inspur.sm.ldap_group。
add_user - 此功能将在 inspur.sm.add_user 3.0.0 中移除,并替换为 inspur.sm.user。
add_user_group - 此功能将在 inspur.sm.add_user_group 3.0.0 中移除,并替换为 inspur.sm.user_group。
del_ad_group - 此功能将在 inspur.sm.del_ad_group 3.0.0 中移除,并替换为 inspur.sm.ad_group。
del_ldap_group - 此功能将在 inspur.sm.del_ldap_group 3.0.0 中移除,并替换为 inspur.sm.ldap_group。
del_user - 此功能将在 inspur.sm.del_user 3.0.0 中移除,并替换为 inspur.sm.user。
del_user_group - 此功能将在 inspur.sm.del_user_group 3.0.0 中移除,并替换为 inspur.sm.user_group。
edit_ad_group - 此功能将在 inspur.sm.edit_ad_group 3.0.0 中移除,并替换为 inspur.sm.ad_group。
edit_ldap_group - 此功能将在 inspur.sm.edit_ldap_group 3.0.0 中移除,并替换为 inspur.sm.ldap_group。
edit_user - 此功能将在 inspur.sm.edit_user 3.0.0 中移除,并替换为 inspur.sm.user。
edit_user_group - 此功能将在 inspur.sm.edit_user_group 3.0.0 中移除,并替换为 inspur.sm.user_group。
v4.0.0 的移植指南
已知问题
Ansible-core
ansible-test -
pylint
健全性测试不再能正确检测非常量的“错误”变量名。有关更多详细信息,请参见 issue 3701。
dellemc.openmanage
idrac_user - 问题 (192043) 模块可能会报错,并显示消息
unable to perform the import or export operation because there are pending attribute changes or a configuration job is in progress
。等待作业完成并再次运行该任务。ome_configuration_compliance_info - 问题 (195592):模块可能会出错,并显示消息
unable to process the request because an error occurred
。如果问题仍然存在,请向系统管理员报告。ome_smart_fabric - 问题 (185322):OpenManage Enterprise Modular 仅支持三种设计类型,但当设计类型不受支持时,该模块仍会成功创建结构。
ome_smart_fabric_uplink - 问题 (186024) ome_smart_fabric_uplink 模块不允许创建多个同名上行链路,即使 OpenManage Enterprise Modular 支持这样做。如果使用与现有上行链路相同的名称创建上行链路,则会修改现有的上行链路。
fortinet.fortios
用于监控 API 的模块尚未版本化。
重大更改
Ansible-core
已使 SCM 集合无论是否存在
--force
都重新安装。NetBSD 虚拟化事实(特别是
ansible_virtualization_type
)现在通过检查machdep.hypervisor
sysctl
键的值来返回更准确的值。此更改具有破坏性,因为在某些情况下,即使目标不是在 Xen 上运行,我们也会错误地报告xen
。在大多数情况下,此更改可防止出现这种情况。( https://github.com/ansible/ansible/issues/69352 )已将内部依赖关系解析器替换为 pip >= 20.3 现在默认使用的外部实现 —
resolvelib
。( https://github.com/ansible/ansible/issues/71784 )meta
模块现在支持用户定义的任务标签。内部meta
任务继续始终运行。( https://github.com/ansible/ansible/issues/64558 )ansible-galaxy login 命令已删除(请参见 issue 71560)
ansible.netcommon
已从集合中删除供应商提供的 ipaddress 包。如果您在集合中使用 ansible_collections.ansible.netcommon.plugins.module_utils.compat.ipaddress,则需要将其更改为导入 ipaddress。如果您的内容使用 ipaddress 支持 Python 2.7,则还需要确保用户已安装 ipaddress 包。请参考 https://docs.ansible.org.cn/ansible/latest/dev_guide/developing_modules_best_practices.html#importing-and-using-shared-code,了解如何安全地导入用户系统中可能缺少外部包。Python 2.7 的 ipaddress 回溯端口位于 https://pypi.ac.cn/project/ipaddress/
community.docker
docker_swarm - 如果指定了
join_token
,则具有相同值的返回加入令牌将替换为VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
。请确保在指定了join_token
的情况下调用模块时,不要盲目使用此模块的返回值中的加入令牌!由于需要修复安全问题,此重大更改出现在次要版本中(https://github.com/ansible-collections/community.docker/pull/103)。
community.general
如果您使用 Ansible 2.9 和此集合中的这些插件或模块,则在尝试按 FQCN 使用 DellEMC 内容(例如
community.general.idrac_firmware
)时,community.general 3.0.0 会导致错误。由于 Ansible 2.9 无法使用重定向,您必须手动调整您的剧本和角色,以使用新的 FQCN(对于前面的示例,为dellemc.openmanage.idrac_firmware
),并确保您已安装dellemc.openmanage
。如果您使用 ansible-base 2.10 或更新版本,但没有安装 Ansible 4.0.0,而是手动安装(和/或升级)了 community.general,则如果您使用这些插件或模块中的任何一个,则需要确保同时安装
dellemc.openmanage
集合。虽然 ansible-base 2.10 或更新版本可以使用 community.general 3.0.0 添加的重定向,但必须安装它们指向的集合(例如 dellemc.openmanage)才能使它们正常工作。gitlab_deploy_key - 如果对于已存在的密钥标题,提供了不同的公钥作为参数,则不会发生任何情况,现在已更改,以便将公钥更新为新值 (https://github.com/ansible-collections/community.general/pull/1661)。
java_keystore - 如果别名(名称)更改,现在会覆盖密钥库,而不是失败。这最初是预期行为,但由于逻辑错误而无法正常工作。请确保您的剧本和角色不依赖于旧的失败行为,而是依赖于覆盖行为 (https://github.com/ansible-collections/community.general/issues/1671)。
java_keystore - 如果密码短语更改,现在会覆盖密钥库,而不是失败。请确保您的剧本和角色不依赖于旧的失败行为,而是依赖于覆盖行为 (https://github.com/ansible-collections/community.general/issues/1671)。
one_image - 使用 pyone 而不是 python-oca (https://github.com/ansible-collections/community.general/pull/2032)。
utm_proxy_auth_profile -
frontend_cookie_secret
返回值现在包含一个占位符字符串,而不是模块的frontend_cookie_secret
参数 (https://github.com/ansible-collections/community.general/pull/1736)。
fortinet.fortios
通用 FortiOS 模块 - 用于使用 Ansible 发出通用请求的 FOS 模块。
支持 FOS 监控 API - 监控 API 的几个模块是新的。
统一集合 - fortios 集合本身将适应任何 FOS 平台。
servicenow.servicenow
auth 字段现在对于除基本身份验证之外的任何内容都是必需的
theforeman.foreman
所有角色变量现在都以
foreman_
为前缀,以避免与此集合之外的角色中类似命名的变量发生冲突。
主要变更
Ansible-core
可以使用新的版本要求重新安装集合,而无需使用
--force
标志。如果需要,集合的依赖项也将使用新的要求进行更新。使用--upgrade
来强制执行传递依赖项更新。AnsibleModule - 使用
ArgumentSpecValidator
类来验证参数规范,并删除与参数规范验证相关的私有方法。任何使用私有方法的模块现在都应使用ArgumentSpecValidator
类或相应的验证函数。已将
resolvelib >= 0.5.3, < 0.6.0
声明为 ansible-core 的直接依赖项。参考:- https://github.com/sarugaku/resolvelib - https://pypi.ac.cn/p/resolvelib - https://pradyunsg.me/blog/2020/03/27/pip-resolver-testing现在可以从本地文件夹和命名空间文件夹安装 Ansible 集合,类似于具有多个集合的 SCM 结构。
现在可以使用
ansible-galaxy collection install
命令的--upgrade
选项从 Galaxy 服务器升级 Ansible 集合。支持在角色执行时进行角色参数规范验证。当角色包含参数规范时,会在角色执行开始时插入一个隐式的验证任务。
添加
ArgumentSpecValidator
类,用于在AnsibleModule
之外针对参数规范验证参数 (https://github.com/ansible/ansible/pull/73335)ansible-test - 当使用 Python 2.6 时,使用
centos6
和default
测试容器运行的测试现在使用 PyPI 代理容器来访问 PyPI。这允许在 Python 2.6 下运行的测试继续运行,即使 PyPI 正在停止对不支持 SNI 的客户端的支持。
ansible.netcommon
从 netconf_config 中删除已弃用的连接参数
arista.eos
需要 ansible.netcommon v2.0.0+ 来支持 ansible_network_single_user_mode 和 ansible_network_import_modules - 有关更多详细信息,请参阅 ansible.netcommon 更新日志。
cisco.asa
有关更多详细信息,请参阅 ansible.netcommon 更新日志 <https://github.com/ansible-collections/ansible.netcommon/blob/main/changelogs/CHANGELOG.rst#ansible-netcommon-collection-release-notes>。
需要 ansible.netcommon v2.0.0+ 来支持 ansible_network_single_user_mode 和 ansible_network_import_modules。
cisco.ios
有关更多详细信息,请参阅 ansible.netcommon 更新日志。
需要 ansible.netcommon v2.0.0+ 来支持 ansible_network_single_user_mode 和 ansible_network_import_modules。
cisco.iosxr
有关更多详细信息,请参阅 ansible.netcommon 更新日志。
需要 ansible.netcommon v2.0.0+ 来支持 ansible_network_single_user_mode 和 ansible_network_import_modules。
ipaddress 不再在 ansible.netcommon 中。 对于没有 ipaddress 的 Python 版本(< 3.0),现在需要 ipaddress 包。
cisco.nxos
有关更多详细信息,请参阅 ansible.netcommon 更新日志。
需要 ansible.netcommon v2.0.0+ 来支持 ansible_network_single_user_mode 和 ansible_network_import_modules。
community.grafana
在 grafana_teams 和 grafana_folder 模块中引入 “skip_version_check” 参数 (#147)
community.mysql
mysql_replication - 添加弃用警告,
Is_Slave
和Is_Master
返回值将在community.mysql
3.0.0 中被Is_Primary
和Is_Replica
替换 (https://github.com/ansible-collections/community.mysql/pull/147)。mysql_replication - 包含
master
的state
选项的选择将在community.mysql
3.0.0 中最终被替换为替代的primary
选择,添加弃用警告 (https://github.com/ansible-collections/community.mysql/pull/150)。mysql_replication - 模式选项值
getslave
、startslave
、stopslave
、resetslave
、resetslaveall
和master_use_gtid
选项slave_pos
已弃用(请参阅替代值),并将在community.mysql
3.0.0 中删除 (https://github.com/ansible-collections/community.mysql/pull/97)。mysql_replication - 返回值
Is_Slave
和Is_Master
将在community.mysql
3.0.0 中被Is_Replica
和Is_Primary
替换 (https://github.com/ansible-collections/community.mysql/issues/145)。mysql_replication - 模块返回的消息中的单词
SLAVE
将在community.mysql
2.0.0 中更改为REPLICA
(https://github.com/ansible-collections/community.mysql/issues/98)。mysql_replication - 模块返回的消息中的单词
master
将在community.mysql
3.0.0 中被primary
替换 (https://github.com/ansible-collections/community.mysql/issues/145)。mysql_replication - 模块返回的消息中的单词
slave
将被替换为replica
(https://github.com/ansible-collections/community.mysql/issues/98)。mysql_user -
REQUIRESSL
是community.mysql
2.0.0 中tls_requires
选项中ssl
键的别名,并且在community.mysql
3.0.0 中将完全删除支持 (https://github.com/ansible-collections/community.mysql/issues/121)。
fortinet.fortios
新模块 fortios_configuration_fact
新模块 fortios_json_generic
新模块 fortios_monitor
新模块 fortios_monitor_fact
junipernetworks.junos
有关更多详细信息,请参阅 ansible.netcommon 更新日志。
需要 ansible.netcommon v2.0.0+ 来支持 ansible_network_single_user_mode 和 ansible_network_import_modules。
netapp.ontap
na_ontap_autosupport - 为模块添加 REST 支持。
openvswitch.openvswitch
此特定版本没有重大更改,它是由于错误而被标记的,无法撤消。
servicenow.servicenow
重构客户端以继承自 AnsibleModule
支持 OpenID Connect 身份验证协议
支持用于身份验证的持有者令牌
vyos.vyos
有关更多详细信息,请参阅 ansible.netcommon 更新日志。
需要 ansible.netcommon v2.0.0+ 来支持 ansible_network_single_user_mode 和 ansible_network_import_modules
ipaddress 不再在 ansible.netcommon 中。 对于没有 ipaddress 的 Python 版本(< 3.0),现在需要 ipaddress 包。
已删除的功能
Ansible-core
从 ansible.plugins.strategy 中删除了 SharedPluginLoaderObj 类。它已被弃用,建议使用标准插件加载器。
从回调插件基类中删除了 _get_item() 别名,该别名已被弃用,建议使用 _get_item_label()。
“user” 参数先前已被弃用,现在已删除,建议使用 “scope”。
已删除已弃用的
ansible.constants.BECOME_METHODS
。已删除已弃用的
ansible.constants.get_config()
。已删除已弃用的
ansible.constants.mk_boolean()
。with_* 循环不再针对其 name 参数可以接受列表的模块(主要是包管理器)进行优化。请使用 name,而不是使用 with_items 和其他类似方法循环遍历各个名称。
community.general
ome_device_info
、idrac_firmware
和idrac_server_config_profile
模块现在已从 community.general 迁移到 dellemc.openmanage Ansible 集合。 如果您使用 ansible-base 2.10 或更高版本,则已提供重定向。如果您使用 Ansible 2.9 并安装了此集合,则需要调整 FQCN(
community.general.idrac_firmware
→dellemc.openmanage.idrac_firmware
),并确保安装了 dellemc.openmanage 集合。已删除已弃用的 ali_instance_facts 模块。 请改用 ali_instance_info (https://github.com/ansible-collections/community.general/pull/1924)。
已删除已弃用的 gluster_heal_info 模块。 请改用 gluster.gluster.gluster_heal_info (https://github.com/ansible-collections/community.general/pull/1924)。
已删除已弃用的 gluster_peer 模块。 请改用 gluster.gluster.gluster_peer (https://github.com/ansible-collections/community.general/pull/1924)。
已删除已弃用的 gluster_volume 模块。 请改用 gluster.gluster.gluster_volume (https://github.com/ansible-collections/community.general/pull/1924)。
已删除已弃用的 helm 模块。 请改用 community.kubernetes.helm (https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 hpilo_facts 模块已被移除。请改用 hpilo_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 idrac_redfish_facts 模块已被移除。请改用 idrac_redfish_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 jenkins_job_facts 模块已被移除。请改用 jenkins_job_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 ldap_attr 模块已被移除。请改用 ldap_attrs 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 memset_memstore_facts 模块已被移除。请改用 memset_memstore_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 memset_server_facts 模块已被移除。请改用 memset_server_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 na_ontap_gather_facts 模块已被移除。请改用 netapp.ontap.na_ontap_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 nginx_status_facts 模块已被移除。请改用 nginx_status_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 one_image_facts 模块已被移除。请改用 one_image_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 onepassword_facts 模块已被移除。请改用 onepassword_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 oneview_datacenter_facts 模块已被移除。请改用 oneview_datacenter_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 oneview_enclosure_facts 模块已被移除。请改用 oneview_enclosure_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 oneview_ethernet_network_facts 模块已被移除。请改用 oneview_ethernet_network_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 oneview_fc_network_facts 模块已被移除。请改用 oneview_fc_network_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 oneview_fcoe_network_facts 模块已被移除。请改用 oneview_fcoe_network_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 oneview_logical_interconnect_group_facts 模块已被移除。请改用 oneview_logical_interconnect_group_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 oneview_network_set_facts 模块已被移除。请改用 oneview_network_set_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 oneview_san_manager_facts 模块已被移除。请改用 oneview_san_manager_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 online_server_facts 模块已被移除。请改用 online_server_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 online_user_facts 模块已被移除。请改用 online_user_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 ovirt 模块已被移除。请改用 ovirt.ovirt.ovirt_vm 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 ovirt_affinity_label_facts 模块已被移除。请改用 ovirt.ovirt.ovirt_affinity_label_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 ovirt_api_facts 模块已被移除。请改用 ovirt.ovirt.ovirt_api_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 ovirt_cluster_facts 模块已被移除。请改用 ovirt.ovirt.ovirt_cluster_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 ovirt_datacenter_facts 模块已被移除。请改用 ovirt.ovirt.ovirt_datacenter_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 ovirt_disk_facts 模块已被移除。请改用 ovirt.ovirt.ovirt_disk_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 ovirt_event_facts 模块已被移除。请改用 ovirt.ovirt.ovirt_event_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 ovirt_external_provider_facts 模块已被移除。请改用 ovirt.ovirt.ovirt_external_provider_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 ovirt_group_facts 模块已被移除。请改用 ovirt.ovirt.ovirt_group_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 ovirt_host_facts 模块已被移除。请改用 ovirt.ovirt.ovirt_host_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 ovirt_host_storage_facts 模块已被移除。请改用 ovirt.ovirt.ovirt_host_storage_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 ovirt_network_facts 模块已被移除。请改用 ovirt.ovirt.ovirt_network_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 ovirt_nic_facts 模块已被移除。请改用 ovirt.ovirt.ovirt_nic_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 ovirt_permission_facts 模块已被移除。请改用 ovirt.ovirt.ovirt_permission_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 ovirt_quota_facts 模块已被移除。请改用 ovirt.ovirt.ovirt_quota_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 ovirt_scheduling_policy_facts 模块已被移除。请改用 ovirt.ovirt.ovirt_scheduling_policy_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 ovirt_snapshot_facts 模块已被移除。请改用 ovirt.ovirt.ovirt_snapshot_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 ovirt_storage_domain_facts 模块已被移除。请改用 ovirt.ovirt.ovirt_storage_domain_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 ovirt_storage_template_facts 模块已被移除。请改用 ovirt.ovirt.ovirt_storage_template_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 ovirt_storage_vm_facts 模块已被移除。请改用 ovirt.ovirt.ovirt_storage_vm_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 ovirt_tag_facts 模块已被移除。请改用 ovirt.ovirt.ovirt_tag_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 ovirt_template_facts 模块已被移除。请改用 ovirt.ovirt.ovirt_template_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 ovirt_user_facts 模块已被移除。请改用 ovirt.ovirt.ovirt_user_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 ovirt_vm_facts 模块已被移除。请改用 ovirt.ovirt.ovirt_vm_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 ovirt_vmpool_facts 模块已被移除。请改用 ovirt.ovirt.ovirt_vmpool_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 purefa_facts 模块已被移除。请改用 purestorage.flasharray.purefa_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 purefb_facts 模块已被移除。请改用 purestorage.flasharray.purefb_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 python_requirements_facts 模块已被移除。请改用 python_requirements_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 redfish_facts 模块已被移除。请改用 redfish_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 scaleway_image_facts 模块已被移除。请改用 scaleway_image_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 scaleway_ip_facts 模块已被移除。请改用 scaleway_ip_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 scaleway_organization_facts 模块已被移除。请改用 scaleway_organization_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 scaleway_security_group_facts 模块已被移除。请改用 scaleway_security_group_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 scaleway_server_facts 模块已被移除。请改用 scaleway_server_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 scaleway_snapshot_facts 模块已被移除。请改用 scaleway_snapshot_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 scaleway_volume_facts 模块已被移除。请改用 scaleway_volume_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 smartos_image_facts 模块已被移除。请改用 smartos_image_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 vertica_facts 模块已被移除。请改用 vertica_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
已弃用的 xenserver_guest_facts 模块已被移除。请改用 xenserver_guest_info 模块(https://github.com/ansible-collections/community.general/pull/1924)。
ovirt_facts 文档片段已被移除(https://github.com/ansible-collections/community.general/pull/1924)。
airbrake_deployment - 移除已弃用的
token
参数。请改用project_id
和project_key
(https://github.com/ansible-collections/community.general/pull/1926)。bigpanda - 别名
message
已被移除。请改用deployment_message
(https://github.com/ansible-collections/community.general/pull/1926)。cisco_spark, cisco_webex - 别名
message
已被移除。请改用msg
(https://github.com/ansible-collections/community.general/pull/1926)。clc_aa_policy -
wait
参数已被移除。它没有任何效果 (https://github.com/ansible-collections/community.general/pull/1926)。datadog_monitor - 别名
message
已被移除。请改用notification_message
(https://github.com/ansible-collections/community.general/pull/1926)。django_manage - 参数
liveserver
已被移除 (https://github.com/ansible-collections/community.general/pull/1926)。idrac_redfish_config - 参数
manager_attribute_name
和manager_attribute_value
已被移除。请改用manager_attributes
(https://github.com/ansible-collections/community.general/pull/1926)。iso_extract - 别名
thirsty
已被移除。请改用force
(https://github.com/ansible-collections/community.general/pull/1926)。ldap_entry -
params
参数现已完全移除。自 community.general 0.1.2 起使用它已触发错误 (https://github.com/ansible-collections/community.general/pull/2257)。pulp_repo -
feed_client_cert
参数不再默认为client_cert
参数的值 (https://github.com/ansible-collections/community.general/pull/1926)。pulp_repo -
feed_client_key
参数不再默认为client_key
参数的值 (https://github.com/ansible-collections/community.general/pull/1926)。pulp_repo - 别名
ca_cert
已被移除。请改用feed_ca_cert
(https://github.com/ansible-collections/community.general/pull/1926)。rax - 移除未使用的参数
service
(https://github.com/ansible-collections/community.general/pull/2020)。redfish 模块 - 当有多个目标系统、机箱或管理器资源时,不允许在不指定目标资源 ID 的情况下发出数据修改命令。请使用
resource_id
选项来指定目标 ID (https://github.com/ansible-collections/community.general/pull/1926)。redfish_config - 参数
bios_attribute_name
和bios_attribute_value
已被移除。请改用bios_attributes
(https://github.com/ansible-collections/community.general/pull/1926)。syspatch -
apply
参数已被移除。这是默认模式,因此直接移除它不会改变行为 (https://github.com/ansible-collections/community.general/pull/1926)。xbps -
force
参数已被移除。它没有任何效果 (https://github.com/ansible-collections/community.general/pull/1926)。
community.network
已移除已弃用的
community.network.ce_sflow
参数:rate_limit
、rate_limit_slot
和forward_enp_slot
(https://github.com/ansible-collections/community.network/pull/255)。已移除已弃用的
community.network.sros
netconf 插件。请改用nokia.sros.md
(https://github.com/ansible-collections/community.network/pull/255)。
f5networks.f5_modules
移除了 bigip_gtm_pool 和 bigip_gtm_wide_ip 模块对 TMOS v11 的支持
移除了 bigip_node 模块中的 quorum 和 monitor_type 参数。请参阅 https://clouddocs.f5.com/products/orchestration/ansible/devel/usage/porting-guides.html 上的移植指南部分
移除了 bigip_log_destination 模块中的 syslog_settings 和 pool_settings 参数。请参阅 https://clouddocs.f5.com/products/orchestration/ansible/devel/usage/porting-guides.html 上的移植指南部分
fortinet.fortios
移除了模块 fortios_facts
移除了模块 fortios_registration_forticare
移除了模块 fortios_registration_vdom
移除了模块 fortios_system_config_backup_restore
移除了模块 fortios_system_vmlicense
已弃用的功能
Ansible-core
从 2.14 版本开始,shell 和 command 模块将不再具有警告并建议使用其他模块来代替命令的选项。这些模块的
warn
参数现已弃用,默认为False
。同样,COMMAND_WARNINGS
配置选项也已弃用,默认为False
。这些将在 2.14 版本中被移除,并且它们的存在将变为错误。apt_key - 参数
key
没有任何效果,已被弃用,将在 ansible-core 版本 2.14 中移除 (https://github.com/ansible/ansible/pull/70319)。psrp - 将
pypsrp
的最低版本设置为0.4.0
。
ansible.netcommon
弃用 cli_parse 模块以及 textfsm、ttp、xml、json 解析器插件,因为它们已移动到 ansible.utils 集合 (https://github.com/ansible-collections/ansible.netcommon/pull/182 https://github.com/ansible-collections/ansible.utils/pull/28)
cisco.nxos
已弃用 nxos_bgp_af,建议使用 nxos_bgp_address_family 资源模块。
已弃用 nxos_bgp_neighbor_af,建议使用 nxos_bgp_neighbor_address_family 资源模块。
cloudscale_ch.cloud
volume 模块中 servers 参数的别名
server_uuids
和server_uuid
将在 3.0.0 版本中移除。
community.aws
ec2_eip - 正式弃用
instance_id
作为device_id
的别名 (https://github.com/ansible-collections/community.aws/pull/349)。ec2_vpc_endpoint - 弃用 policy_file 选项,并建议使用带有查找的 policy (https://github.com/ansible-collections/community.aws/pull/366)。
ec2_vpc_endpoint_info -
query
选项已弃用,将在 2022-12-01 之后移除 (https://github.com/ansible-collections/community.aws/pull/346)。ec2_vpc_endpoint_info 现在默认为列出有关端点的信息。搜索有关可用服务信息的功能已移动到专用模块ec2_vpc_endpoint_service_info
。
community.crypto
acme 模块工具 -
acme
模块工具 (ansible_collections.community.crypto.plugins.module_utils.acme
) 已弃用,将在 community.crypto 2.0.0 中移除。请改用acme
包中的新 Python 模块 (ansible_collections.community.crypto.plugins.module_utils.acme.xxx
) (https://github.com/ansible-collections/community.crypto/pull/184)。acme_account_info - 当
retrieve_orders=url_list
时,orders
将不再在 community.crypto 2.0.0 中返回。请改用order_uris
(https://github.com/ansible-collections/community.crypto/pull/178)。
community.general
apt_rpm - 弃用无效参数别名
update-cache
,将在 5.0.0 版本中移除 (https://github.com/ansible-collections/community.general/pull/1927)。composer - 弃用无效参数别名
working-dir
、global-command
、prefer-source
、prefer-dist
、no-dev
、no-scripts
、no-plugins
、optimize-autoloader
、classmap-authoritative
、apcu-autoloader
、ignore-platform-reqs
,将在 5.0.0 版本中移除 (https://github.com/ansible-collections/community.general/pull/1927)。cpanm - 参数
system_lib
已弃用,建议使用become
代替 (https://github.com/ansible-collections/community.general/pull/2218)。github_deploy_key - 弃用无效参数别名
2fa_token
,将在 5.0.0 版本中移除 (https://github.com/ansible-collections/community.general/pull/1927)。grove - 选项
message
将在 community.general 4.0.0 中移除。请改用新的选项message_content
(https://github.com/ansible-collections/community.general/pull/1929)。homebrew - 弃用无效参数别名
update-brew
,将在 5.0.0 版本中移除 (https://github.com/ansible-collections/community.general/pull/1927)。homebrew_cask - 弃用无效参数别名
update-brew
,将在 5.0.0 版本中移除 (https://github.com/ansible-collections/community.general/pull/1927)。opkg - 弃用无效参数别名
update-cache
,将在 5.0.0 版本中移除 (https://github.com/ansible-collections/community.general/pull/1927)。pacman - 弃用无效参数别名
update-cache
,将在 5.0.0 版本中移除 (https://github.com/ansible-collections/community.general/pull/1927)。puppet - 弃用未记录的参数
show_diff
,将在 7.0.0 版本中移除 (https://github.com/ansible-collections/community.general/pull/1927)。runit - 未使用的参数
dist
已标记为弃用 (https://github.com/ansible-collections/community.general/pull/1830)。slackpkg - 弃用无效参数别名
update-cache
,将在 5.0.0 版本中移除 (https://github.com/ansible-collections/community.general/pull/1927)。urpmi - 弃用无效参数别名
update-cache
和no-recommends
,将在 5.0.0 版本中移除 (https://github.com/ansible-collections/community.general/pull/1927)。xbps - 弃用无效参数别名
update-cache
,将在 5.0.0 版本中移除 (https://github.com/ansible-collections/community.general/pull/1927)。xfconf - 将输出作为事实返回已弃用,这将在 community.general 4.0.0 中移除。请将任务输出注册到变量中并使用它。您现在可以使用新的
disable_facts
选项来切换到新的行为 (https://github.com/ansible-collections/community.general/pull/1747)。
community.vmware
vmware_vmkernel_ip_config - 弃用,建议使用 vmware_vmkernel 代替 (https://github.com/ansible-collections/community.vmware/pull/667)。
f5networks.f5_modules
正在弃用对早于 3.5 的 Python 版本的支持