Stop installing all Ansible collections
We currently depend on the ansible
pip package, which includes a whole lot of collections that we don't use.
Once installed with python 3.11, ansible
takes 358 MB, while ansible-core
takes a mere 12 MB. Here is a breakdown of the largest collections:
109.9 MiB [##########] /fortinet
68.7 MiB [###### ] /community
48.7 MiB [#### ] /cisco
16.9 MiB [# ] /dellemc
11.5 MiB [# ] /netapp
10.3 MiB [ ] /f5networks
8.6 MiB [ ] /google
8.4 MiB [ ] /azure
5.9 MiB [ ] /ansible
5.3 MiB [ ] /junipernetworks
5.1 MiB [ ] /arista
We should find a way to only depend on what we need, because it will really speed up installation. This means:
- ansible-core (obviously)
- some basic collections : Community.General, Community.Docker
And also allow users to install additional collections they need.