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

add a list-option to the zypper_repository module to read the list of registered repositories #8777

Closed
1 task done
TobiasZeuch181 opened this issue Aug 19, 2024 · 4 comments · May be fixed by #8778
Closed
1 task done
Labels
feature This issue/PR relates to a feature request has_pr module module plugins plugin (any type)

Comments

@TobiasZeuch181
Copy link

Summary

I would like see a new option in the community-module zypper_repository that returns the list of repositories as a dictionary with the parameters as printed by "zypper repos"

Issue Type

Feature Idea

Component Name

zypper_repository

Additional Information

    # - name: Read registered repos
    #   community.general.zypper_repository:
    #     list: true
    #   register: repositories

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
TobiasZeuch181 added a commit to TobiasZeuch181/zypper_repository_add_list that referenced this issue Aug 19, 2024
and link to the issue in the issue-tracker ansible-collections#8777
@ansibullbot
Copy link
Collaborator

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added feature This issue/PR relates to a feature request has_pr module module plugins plugin (any type) labels Aug 19, 2024
@felixfontein
Copy link
Collaborator

As mentioned in #8778 (comment), this should rather be a _info module (say zypper_repository_info), than an option/state of the zypper_repository module.

@TobiasZeuch181
Copy link
Author

Thanks for the feedback. I also found out, that there was already a request for this feature with the same result in #6736
I will close this request. If a new module is going to be developed, this can be linked to the old feature request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request has_pr module module plugins plugin (any type)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants