yum_repository: remove deprecated keepcache option (#85441)

pull/85462/head
Martin Krizek 5 months ago committed by GitHub
parent 8207406306
commit e4135b6f19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,2 @@
removed_features:
- yum_repository - remove deprecated ``keepcache`` option.

@ -183,14 +183,6 @@ options:
- This parameter is deprecated as it has no effect with dnf as an underlying package manager - This parameter is deprecated as it has no effect with dnf as an underlying package manager
and will be removed in ansible-core 2.22. and will be removed in ansible-core 2.22.
type: bool type: bool
keepcache:
description:
- Either V(1) or V(0). Determines whether or not yum keeps the cache of
headers and packages after successful installation.
- This parameter is deprecated as it is only valid in the main configuration
and will be removed in ansible-core 2.20.
choices: ['0', '1']
type: str
metadata_expire: metadata_expire:
description: description:
- Time (in seconds) after which the metadata will expire. - Time (in seconds) after which the metadata will expire.
@ -466,13 +458,7 @@ class YumRepo:
for key, value in sorted(self.params.items()): for key, value in sorted(self.params.items()):
if value is None: if value is None:
continue continue
if key == 'keepcache': if key == 'async':
self.module.deprecate(
"'keepcache' parameter is deprecated as it is only valid in "
"the main configuration.",
version='2.20'
)
elif key == 'async':
self.module.deprecate( self.module.deprecate(
"'async' parameter is deprecated as it has been removed on systems supported by ansible-core", "'async' parameter is deprecated as it has been removed on systems supported by ansible-core",
version='2.22', version='2.22',
@ -557,7 +543,6 @@ def main():
includepkgs=dict(type='list', elements='str'), includepkgs=dict(type='list', elements='str'),
ip_resolve=dict(choices=['4', '6', 'IPv4', 'IPv6', 'whatever']), ip_resolve=dict(choices=['4', '6', 'IPv4', 'IPv6', 'whatever']),
keepalive=dict(type='bool'), keepalive=dict(type='bool'),
keepcache=dict(choices=['0', '1']),
metadata_expire=dict(), metadata_expire=dict(),
metadata_expire_filter=dict( metadata_expire_filter=dict(
choices=[ choices=[

Loading…
Cancel
Save