community.general
community.general copied to clipboard
[WIP] Allow to specify module/plugin requirements in a machine-readable way
SUMMARY
This is a prototype for an action plugin that, given a list of modules/plugins, can figure out the Python and system packages that need to be installed to run these. It assumes that the module's/plugin's documentation contains a structure similar as in https://github.com/ansible-community/community-topics/issues/224#issuecomment-1662079909. I've added such information to the ufw and java_cert modules.
Ref: https://github.com/ansible-community/community-topics/issues/224
ISSUE TYPE
- New Module/Plugin Pull Request
COMPONENT NAME
plugin_requirements_info action
cc @absynth76 @ahtik @haad @ovcharenko @pyykkis click here for bot help
I would suggest to add an error handler to inform which module failed to run in case dependency cannot be resolve. Easily done with a block rescue pattern and a specific message on failure. My 2 cents, can be discarded if irrelevant.