Adjust booleans in packaging modules. (#5154) (#5169)

(cherry picked from commit ddc989ec6d)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot] 2022-08-24 20:46:30 +02:00 committed by GitHub
commit 5a2e7f9b1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
38 changed files with 242 additions and 228 deletions

View file

@ -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