Skip to content

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

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

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
@ansibullbot ansibullbot added needs_ci This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI and removed stale_ci CI is older than 7 days, rerun before merging labels Mar 4, 2025
@felixfontein felixfontein added the backport-11 Automatically create a backport for the stable-10 branch label Jun 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action action plugin backport-11 Automatically create a backport for the stable-10 branch has_issue module module needs_ci This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI plugins plugin (any type) WIP Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants