-
Notifications
You must be signed in to change notification settings - Fork 201
Description
- Which version of Ansible are you running?
= 2.11
-
Is your version of Ansible patched in any way?
No -
Are you running with any custom modules, or
module_utils
loaded?
A lot of modules from different Ansible collections -
Have you tried the latest master version from Git?
No -
Mention your host and target OS and versions
Ubuntu 22.04 -
Mention your host and target Python versions
3.8 or 3.10
Hi, thank you for such amazing plugin!
The new convenient distribution format for Ansible plugins/modules is Ansible Collections. Any plugin either inventory/action/lookup/strategy plugin or Ansible-module could be packaged to such collection and distributed to end users via Ansible Galaxy or collection git repo. All the python code for Ansible (except SDK libraries) should be distributed as a collection and the user experience will be as follows:
- Install the python requirements
# pip3 install mitogen
or
# apt-get install python3-mitogen
- Install Ansible requirements
$ ansible-galaxy install -r requirements.yml
or
$ ansible-galaxy collection install mitogen-hq.mitogen
- Use mitogen plugin from collection in ansible.cfg by FQCN
strategy_plugins = mitogen-hq.mitogen.strategy
strategy = mitogen_linear
It dramatically simplifies the usage and environment setup.
The good collections examples are collections for cloud providers such as AWS or OpenStack:
https://github.com/ansible-collections/amazon.aws
https://github.com/openstack/ansible-collections-openstack