Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

felixfontein
Copy link
Collaborator

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 ansible-community/community-topics#224 (comment). I've added such information to the ufw and java_cert modules.

Ref: ansible-community/community-topics#224

ISSUE TYPE
  • New Module/Plugin Pull Request
COMPONENT NAME

plugin_requirements_info action

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added WIP Work in progress action action plugin module module plugins plugin (any type) labels Dec 11, 2023
@ansibullbot ansibullbot added the stale_ci CI is older than 7 days, rerun before merging label Dec 20, 2023
@absynth76
Copy link
Contributor

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.

@ansibullbot ansibullbot removed the stale_ci CI is older than 7 days, rerun before merging label Dec 21, 2023
@ansibullbot ansibullbot added the stale_ci CI is older than 7 days, rerun before merging label Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action action plugin has_issue module module plugins plugin (any type) stale_ci CI is older than 7 days, rerun before merging WIP Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants