mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix Python 3.7 syntax error in yum_repository.
This commit is contained in:
parent
15a04a3da7
commit
232dc7110c
2 changed files with 59 additions and 57 deletions
|
@ -615,63 +615,66 @@ class YumRepo(object):
|
|||
|
||||
def main():
|
||||
# Module settings
|
||||
argument_spec = dict(
|
||||
bandwidth=dict(),
|
||||
baseurl=dict(type='list'),
|
||||
cost=dict(),
|
||||
deltarpm_metadata_percentage=dict(),
|
||||
deltarpm_percentage=dict(),
|
||||
description=dict(),
|
||||
enabled=dict(type='bool'),
|
||||
enablegroups=dict(type='bool'),
|
||||
exclude=dict(type='list'),
|
||||
failovermethod=dict(choices=['roundrobin', 'priority']),
|
||||
file=dict(),
|
||||
gpgcakey=dict(),
|
||||
gpgcheck=dict(type='bool'),
|
||||
gpgkey=dict(type='list'),
|
||||
http_caching=dict(choices=['all', 'packages', 'none']),
|
||||
include=dict(),
|
||||
includepkgs=dict(type='list'),
|
||||
ip_resolve=dict(choices=['4', '6', 'IPv4', 'IPv6', 'whatever']),
|
||||
keepalive=dict(type='bool'),
|
||||
keepcache=dict(choices=['0', '1']),
|
||||
metadata_expire=dict(),
|
||||
metadata_expire_filter=dict(
|
||||
choices=[
|
||||
'never',
|
||||
'read-only:past',
|
||||
'read-only:present',
|
||||
'read-only:future']),
|
||||
metalink=dict(),
|
||||
mirrorlist=dict(),
|
||||
mirrorlist_expire=dict(),
|
||||
name=dict(required=True),
|
||||
params=dict(type='dict'),
|
||||
password=dict(no_log=True),
|
||||
priority=dict(),
|
||||
protect=dict(type='bool'),
|
||||
proxy=dict(),
|
||||
proxy_password=dict(no_log=True),
|
||||
proxy_username=dict(),
|
||||
repo_gpgcheck=dict(type='bool'),
|
||||
reposdir=dict(default='/etc/yum.repos.d', type='path'),
|
||||
retries=dict(),
|
||||
s3_enabled=dict(type='bool'),
|
||||
skip_if_unavailable=dict(type='bool'),
|
||||
sslcacert=dict(),
|
||||
ssl_check_cert_permissions=dict(type='bool'),
|
||||
sslclientcert=dict(),
|
||||
sslclientkey=dict(),
|
||||
sslverify=dict(type='bool'),
|
||||
state=dict(choices=['present', 'absent'], default='present'),
|
||||
throttle=dict(),
|
||||
timeout=dict(),
|
||||
ui_repoid_vars=dict(),
|
||||
username=dict(),
|
||||
)
|
||||
|
||||
argument_spec['async'] = dict(type='bool')
|
||||
|
||||
module = AnsibleModule(
|
||||
argument_spec=dict(
|
||||
async=dict(type='bool'),
|
||||
bandwidth=dict(),
|
||||
baseurl=dict(type='list'),
|
||||
cost=dict(),
|
||||
deltarpm_metadata_percentage=dict(),
|
||||
deltarpm_percentage=dict(),
|
||||
description=dict(),
|
||||
enabled=dict(type='bool'),
|
||||
enablegroups=dict(type='bool'),
|
||||
exclude=dict(type='list'),
|
||||
failovermethod=dict(choices=['roundrobin', 'priority']),
|
||||
file=dict(),
|
||||
gpgcakey=dict(),
|
||||
gpgcheck=dict(type='bool'),
|
||||
gpgkey=dict(type='list'),
|
||||
http_caching=dict(choices=['all', 'packages', 'none']),
|
||||
include=dict(),
|
||||
includepkgs=dict(type='list'),
|
||||
ip_resolve=dict(choices=['4', '6', 'IPv4', 'IPv6', 'whatever']),
|
||||
keepalive=dict(type='bool'),
|
||||
keepcache=dict(choices=['0', '1']),
|
||||
metadata_expire=dict(),
|
||||
metadata_expire_filter=dict(
|
||||
choices=[
|
||||
'never',
|
||||
'read-only:past',
|
||||
'read-only:present',
|
||||
'read-only:future']),
|
||||
metalink=dict(),
|
||||
mirrorlist=dict(),
|
||||
mirrorlist_expire=dict(),
|
||||
name=dict(required=True),
|
||||
params=dict(type='dict'),
|
||||
password=dict(no_log=True),
|
||||
priority=dict(),
|
||||
protect=dict(type='bool'),
|
||||
proxy=dict(),
|
||||
proxy_password=dict(no_log=True),
|
||||
proxy_username=dict(),
|
||||
repo_gpgcheck=dict(type='bool'),
|
||||
reposdir=dict(default='/etc/yum.repos.d', type='path'),
|
||||
retries=dict(),
|
||||
s3_enabled=dict(type='bool'),
|
||||
skip_if_unavailable=dict(type='bool'),
|
||||
sslcacert=dict(),
|
||||
ssl_check_cert_permissions=dict(type='bool'),
|
||||
sslclientcert=dict(),
|
||||
sslclientkey=dict(),
|
||||
sslverify=dict(type='bool'),
|
||||
state=dict(choices=['present', 'absent'], default='present'),
|
||||
throttle=dict(),
|
||||
timeout=dict(),
|
||||
ui_repoid_vars=dict(),
|
||||
username=dict(),
|
||||
),
|
||||
argument_spec=argument_spec,
|
||||
add_file_common_args=True,
|
||||
supports_check_mode=True,
|
||||
)
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
lib/ansible/modules/packaging/os/yum_repository.py
|
Loading…
Reference in a new issue