mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-05 07:54:00 -07:00
(cherry picked from commit ddc989ec6d
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
c5ff49db56
commit
5a2e7f9b1b
38 changed files with 242 additions and 228 deletions
|
@ -44,12 +44,12 @@ options:
|
|||
I(present).
|
||||
- Needs zypper version >= 1.6.2.
|
||||
type: bool
|
||||
default: no
|
||||
default: false
|
||||
autorefresh:
|
||||
description:
|
||||
- Enable autorefresh of the repository.
|
||||
type: bool
|
||||
default: yes
|
||||
default: true
|
||||
aliases: [ "refresh" ]
|
||||
priority:
|
||||
description:
|
||||
|
@ -62,7 +62,7 @@ options:
|
|||
- Overwrite multiple repository entries, if repositories with both name and
|
||||
URL already exist.
|
||||
type: bool
|
||||
default: no
|
||||
default: false
|
||||
auto_import_keys:
|
||||
description:
|
||||
- Automatically import the gpg signing key of the new or changed repository.
|
||||
|
@ -70,18 +70,18 @@ options:
|
|||
- Implies runrefresh.
|
||||
- Only works with C(.repo) files if `name` is given explicitly.
|
||||
type: bool
|
||||
default: no
|
||||
default: false
|
||||
runrefresh:
|
||||
description:
|
||||
- Refresh the package list of the given repository.
|
||||
- Can be used with repo=* to refresh all repositories.
|
||||
type: bool
|
||||
default: no
|
||||
default: false
|
||||
enabled:
|
||||
description:
|
||||
- Set repository to enabled (or disabled).
|
||||
type: bool
|
||||
default: yes
|
||||
default: true
|
||||
|
||||
|
||||
requirements:
|
||||
|
@ -109,19 +109,19 @@ EXAMPLES = '''
|
|||
- name: Refresh all repos
|
||||
community.general.zypper_repository:
|
||||
repo: '*'
|
||||
runrefresh: yes
|
||||
runrefresh: true
|
||||
|
||||
- name: Add a repo and add its gpg key
|
||||
community.general.zypper_repository:
|
||||
repo: 'http://download.opensuse.org/repositories/systemsmanagement/openSUSE_Leap_42.1/'
|
||||
auto_import_keys: yes
|
||||
auto_import_keys: true
|
||||
|
||||
- name: Force refresh of a repository
|
||||
community.general.zypper_repository:
|
||||
repo: 'http://my_internal_ci_repo/repo'
|
||||
name: my_ci_repo
|
||||
state: present
|
||||
runrefresh: yes
|
||||
runrefresh: true
|
||||
'''
|
||||
|
||||
import traceback
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue