Ansible 2.10 的变化:迁移附属模块至 Ansible Collection
此文章根据2020/04/03(目前)掌握的信息编写而成。
首先
在Ansible 2.10版本中,之前与Ansible一起分发的模块和插件的分发方式发生了变化。
作为Ansible模块化机制的一部分,有Ansible Collection。根据路线图和Ansible Collection概述,从Ansible 2.10开始,将充分利用Ansible Collection。到目前为止,多达4,100个模块(插件)被分离出Ansible的核心存储库,并通过Ansible Collection进行引入。这些相关模块(插件)已从devel分支中移除。未来,Ansible的核心存储库将仅包含所需的最基本的模块和插件,并以ansible-base的软件包名称进行分发。
被分离模块的迁移目标集合
你可以在 https://github.com/ansible/ansible/blob/devel/lib/ansible/config/ansible_builtin_runtime.yml 上找到将在Ansible 2.10中从核心中分离出来的模块(插件)以及每个模块(插件)的迁移目标Collection名称(用于ansible-galaxy collection install的名称)。
该文件考虑到与Ansible 2.9及之前版本的兼容性,并在指定分离前名称的模块(插件)时引用迁移目标Collection的模块(插件),以便让Ansible进行解析。
以下是Collection名称和分离的GitHub存储库的URL(参考版本)。
Collection名リポジトリURL
amazon.aws
https://github.com/ansible-collections/amazon.awsansible.netcommon
https://github.com/ansible-collections/ansible.netcommonansible.posix
https://github.com/ansible-collections/ansible.posixansible.windows
https://github.com/ansible-collections/ansible.windowsarista.eos
https://github.com/ansible-collections/arista.eosawx.awx
https://github.com/ansible/awxazure.azcollection
https://github.com/ansible-collections/azurecheck_point.mgmt
https://github.com/ansible-collections/checkpointchocolatey.chocolatey
https://github.com/vexx32/choco-ansiblecisco.aci
https://github.com/CiscoDevNet/ansible-acicisco.asa
https://github.com/ansible-collections/cisco.asacisco.intersight
https://github.com/CiscoDevNet/ansible-intersightcisco.ios
https://github.com/ansible-collections/ioscisco.iosxr
https://github.com/ansible-collections/iosxrcisco.meraki
https://github.com/CiscoDevNet/ansible-merakicisco.mso
cisco.nxos
https://github.com/ansible-collections/nxoscisco.ucs
https://github.com/CiscoDevNet/ansible-ucscommunity.aws
https://github.com/ansible-collections/community.awscommunity.azure
https://github.com/ansible-collections/community.azurecommunity.crypto
https://github.com/ansible-collections/community.cryptocommunity.general
https://github.com/ansible-collections/community.generalcommunity.grafana
https://github.com/ansible-collections/grafanacommunity.kubernetes
https://github.com/ansible-collections/kubernetescommunity.mongo
https://github.com/ansible-collections/mongodbcommunity.vmware_rest
https://github.com/ansible-collections/vmware_restcommunity.vmware
https://github.com/ansible-collections/vmwarecommunity.windows
https://github.com/ansible-collections/community.windowscontainers.podman
https://github.com/containers/ansible-podman-collectionscyberark.bizdev
https://github.com/cyberark/ansible-security-automation-collectiondellemc_networking.os10
https://github.com/ansible-collections/dellemc_networking.os10dellemc_networking.os6
https://github.com/ansible-collections/dellemc_networking.os6dellemc_networking.os9
https://github.com/ansible-collections/dellemc_networking.os9f5networks.f5_modules
https://github.com/F5Networks/f5-ansiblefortinet.fortios
https://github.com/fortinet-ansible-dev/ansible-galaxy-fortios-collectionfrr.frr
https://github.com/ansible-collections/frrgoogle.cloud
https://github.com/ansible-collections/ansible_collections_googlehetzner.hcloud
https://github.com/ansible-collections/hetzner.hcloudibm.qradar
https://github.com/ansible-collections/ibm.qradarjunipernetworks.junos
https://github.com/ansible-collections/junosnetapp.aws
https://github.com/ansible-collections/netappnetapp.elementsw
https://github.com/ansible-collections/netappnetapp.ontap
https://github.com/ansible-collections/netappnetbox.netbox
https://github.com/netbox-community/ansible_modulesopenstack.cloud
https://opendev.org/openstack/ansible-collections-openstackopenvswitch.openvswitch
https://github.com/ansible-collections/openvswitchovirt.ovirt
https://github.com/ovirt/ovirt-ansible-collectionpurestorage.flasharray
https://github.com/Pure-Storage-Ansible/FlashArray-Collectionpurestorage.flashblade
https://github.com/Pure-Storage-Ansible/FlashBlade-Collectionservicenow.servicenow
https://github.com/ServiceNowITOM/servicenow-ansibleskydive.skydive
https://github.com/ansible-collections/skydivesplunk.enterprise_security
https://github.com/ansible-collections/splunk.enterprise_securitytheforeman.foreman
https://github.com/theforeman/foreman-ansible-modulesvyos.vyos
https://github.com/ansible-collections/vyoswti.remote
https://github.com/wtinetworkgear/wti-collection