community.general icon indicating copy to clipboard operation
community.general copied to clipboard

[WIP] Allow to specify module/plugin requirements in a machine-readable way

Open felixfontein opened this issue 1 year ago • 2 comments

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

felixfontein avatar Dec 11 '23 22:12 felixfontein

cc @absynth76 @ahtik @haad @ovcharenko @pyykkis click here for bot help

ansibullbot avatar Dec 11 '23 22:12 ansibullbot

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.

absynth76 avatar Dec 20 '23 20:12 absynth76