Note
This module is part of the community.general collection (version 10.7.3).
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
The below requirements are needed on the host that executes this module.
Attribute | Support | Description |
|---|---|---|
check_mode | Support: full This action does not modify state. | Can run in |
diff_mode | Support: N/A This action does not modify state. | Will return details on what has changed (or possibly needs changing in |
Note
- name: List registered repositories and store in variable repositories
community.general.zypper_repository_info: {}
register: repodatalist
Common return values are documented here, the following are the fields unique to this module:
Key | Description |
|---|---|
repodatalist list / elements=dictionary | A list of repository descriptions like it is returned by the command Returned: always |
|
alias string |
The alias of the repository. Returned: success Sample: |
|
autorefresh integer |
Indicates, if autorefresh is enabled on the repository. Returned: success Sample: |
|
enabled integer |
Indicates, if the repository is enabled. Returned: success Sample: |
|
gpgcheck integer |
Indicates, if the GPG signature of the repository meta data is checked. Returned: success Sample: |
|
name string |
The name of the repository. Returned: success Sample: |
|
priority integer |
The priority of the repository. Returned: success Sample: |
|
url string |
The URL of the repository on the internet. Returned: success Sample: |
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/general/zypper_repository_info_module.html