community.general.zypper_repository_info module – List Zypper repositories
Note
This module is part of the community.general collection (version 10.0.1).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.general
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: community.general.zypper_repository_info
.
New in community.general 10.0.0
Synopsis
List Zypper repositories on SUSE and openSUSE.
Requirements
The below requirements are needed on the host that executes this module.
zypper >= 1.0 (included in openSUSE >= 11.1 or SUSE Linux Enterprise Server/Desktop >= 11.0)
python-xml
Attributes
Attribute |
Support |
Description |
---|---|---|
Support: full This action does not modify state. |
Can run in |
|
Support: N/A This action does not modify state. |
Will return details on what has changed (or possibly needs changing in |
Notes
Note
For info about packages, use the module ansible.builtin.package_facts.
Examples
- name: List registered repositories and store in variable repositories
community.general.zypper_repository_info: {}
register: repodatalist
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
A list of repository descriptions like it is returned by the command Returned: always Sample: |
|
The alias of the repository. Returned: success |
|
Indicates, if autorefresh is enabled on the repository. Returned: success |
|
indicates, if the repository is enabled Returned: success |
|
indicates, if the GPG signature of the repository meta data is checked Returned: success |
|
the name of the repository Returned: success |
|
the priority of the repository Returned: success |
|
The URL of the repository on the internet. Returned: success |