mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
Deprecation of parameters triggering the parameter-invalid sanity-check (#1927)
* fixed validation-modules for plugins/modules/packaging/language/composer.py * fixed validation-modules for plugins/modules/packaging/os/apt_rpm.py * fixed validation-modules for plugins/modules/packaging/os/homebrew.py * fixed validation-modules for plugins/modules/packaging/os/homebrew_cask.py * fixed validation-modules for plugins/modules/packaging/os/opkg.py * fixed validation-modules for plugins/modules/packaging/os/pacman.py * fixed validation-modules for plugins/modules/packaging/os/slackpkg.py * fixed validation-modules for plugins/modules/packaging/os/urpmi.py * fixed validation-modules for plugins/modules/packaging/os/xbps.py * fixed validation-modules for plugins/modules/source_control/github/github_deploy_key.py * fixed validation-modules for plugins/modules/system/puppet.py * added changelog fragment * adjustments from PR + fixes in changelog frag * fixed deprecation of param "show_diff" in module "puppet" * Update changelogs/fragments/1927-removed-parameter-invalid.yml Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/system/puppet.py Co-authored-by: Felix Fontein <felix@fontein.de> * removed unnecessary ignore lines, adjustment in changelog frag * no need to explicitly call deprecate() when param marked for removal * Update changelogs/fragments/1927-removed-parameter-invalid.yml Co-authored-by: Felix Fontein <felix@fontein.de> * Adjustments in changelog fragment, per PR * bumping deprecation to 7.0.0 Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
1133e5c865
commit
7425e9840d
15 changed files with 97 additions and 33 deletions
|
@ -33,6 +33,7 @@ options:
|
|||
update_cache:
|
||||
description:
|
||||
- update the package database first C(apt-get update).
|
||||
- Alias C(update-cache) has been deprecated and will be removed in community.general 5.0.0.
|
||||
aliases: [ 'update-cache' ]
|
||||
type: bool
|
||||
default: no
|
||||
|
@ -157,7 +158,9 @@ def main():
|
|||
module = AnsibleModule(
|
||||
argument_spec=dict(
|
||||
state=dict(type='str', default='present', choices=['absent', 'installed', 'present', 'removed']),
|
||||
update_cache=dict(type='bool', default=False, aliases=['update-cache']),
|
||||
update_cache=dict(
|
||||
type='bool', default=False, aliases=['update-cache'],
|
||||
deprecated_aliases=[dict(name='update-cache', version='5.0.0', collection_name='community.general')]),
|
||||
package=dict(type='list', elements='str', required=True, aliases=['name', 'pkg']),
|
||||
),
|
||||
)
|
||||
|
|
|
@ -49,6 +49,7 @@ options:
|
|||
update_homebrew:
|
||||
description:
|
||||
- update homebrew itself first.
|
||||
- Alias C(update-brew) has been deprecated and will be removed in community.general 5.0.0.
|
||||
type: bool
|
||||
default: no
|
||||
aliases: ['update-brew']
|
||||
|
@ -888,6 +889,7 @@ def main():
|
|||
default=False,
|
||||
aliases=["update-brew"],
|
||||
type='bool',
|
||||
deprecated_aliases=[dict(name='update-brew', version='5.0.0', collection_name='community.general')],
|
||||
),
|
||||
upgrade_all=dict(
|
||||
default=False,
|
||||
|
|
|
@ -49,6 +49,7 @@ options:
|
|||
description:
|
||||
- Update homebrew itself first.
|
||||
- Note that C(brew cask update) is a synonym for C(brew update).
|
||||
- Alias C(update-brew) has been deprecated and will be removed in community.general 5.0.0.
|
||||
type: bool
|
||||
default: no
|
||||
aliases: [ 'update-brew' ]
|
||||
|
@ -800,6 +801,7 @@ def main():
|
|||
default=False,
|
||||
aliases=["update-brew"],
|
||||
type='bool',
|
||||
deprecated_aliases=[dict(name='update-brew', version='5.0.0', collection_name='community.general')],
|
||||
),
|
||||
install_options=dict(
|
||||
default=None,
|
||||
|
|
|
@ -49,6 +49,7 @@ options:
|
|||
update_cache:
|
||||
description:
|
||||
- update the package db first
|
||||
- Alias C(update-cache) has been deprecated and will be removed in community.general 5.0.0.
|
||||
aliases: ['update-cache']
|
||||
default: "no"
|
||||
type: bool
|
||||
|
@ -173,7 +174,9 @@ def main():
|
|||
state=dict(default="present", choices=["present", "installed", "absent", "removed"]),
|
||||
force=dict(default="", choices=["", "depends", "maintainer", "reinstall", "overwrite", "downgrade", "space", "postinstall", "remove",
|
||||
"checksum", "removal-of-dependent-packages"]),
|
||||
update_cache=dict(default="no", aliases=["update-cache"], type='bool')
|
||||
update_cache=dict(
|
||||
default="no", aliases=["update-cache"], type='bool',
|
||||
deprecated_aliases=[dict(name='update-cache', version='5.0.0', collection_name='community.general')]),
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
@ -54,6 +54,7 @@ options:
|
|||
description:
|
||||
- Whether or not to refresh the master package lists.
|
||||
- This can be run as part of a package installation or as a separate step.
|
||||
- Alias C(update-cache) has been deprecated and will be removed in community.general 5.0.0.
|
||||
default: no
|
||||
type: bool
|
||||
aliases: [ update-cache ]
|
||||
|
@ -421,7 +422,9 @@ def main():
|
|||
extra_args=dict(type='str', default=''),
|
||||
upgrade=dict(type='bool', default=False),
|
||||
upgrade_extra_args=dict(type='str', default=''),
|
||||
update_cache=dict(type='bool', default=False, aliases=['update-cache']),
|
||||
update_cache=dict(
|
||||
type='bool', default=False, aliases=['update-cache'],
|
||||
deprecated_aliases=[dict(name='update-cache', version='5.0.0', collection_name='community.general')]),
|
||||
update_cache_extra_args=dict(type='str', default=''),
|
||||
),
|
||||
required_one_of=[['name', 'update_cache', 'upgrade']],
|
||||
|
|
|
@ -41,6 +41,7 @@ options:
|
|||
update_cache:
|
||||
description:
|
||||
- update the package database first
|
||||
- Alias C(update-cache) has been deprecated and will be removed in community.general 5.0.0.
|
||||
required: false
|
||||
default: false
|
||||
type: bool
|
||||
|
@ -177,8 +178,9 @@ def main():
|
|||
argument_spec=dict(
|
||||
state=dict(default="present", choices=['installed', 'removed', 'absent', 'present', 'latest']),
|
||||
name=dict(aliases=["pkg"], required=True, type='list', elements='str'),
|
||||
update_cache=dict(default=False, aliases=["update-cache"],
|
||||
type='bool'),
|
||||
update_cache=dict(
|
||||
default=False, aliases=["update-cache"], type='bool',
|
||||
deprecated_aliases=[dict(name='update-cache', version='5.0.0', collection_name='community.general')]),
|
||||
),
|
||||
supports_check_mode=True)
|
||||
|
||||
|
|
|
@ -33,12 +33,14 @@ options:
|
|||
update_cache:
|
||||
description:
|
||||
- Update the package database first C(urpmi.update -a).
|
||||
- Alias C(update-cache) has been deprecated and will be removed in community.general 5.0.0.
|
||||
type: bool
|
||||
default: no
|
||||
aliases: ['update-cache']
|
||||
no_recommends:
|
||||
description:
|
||||
- Corresponds to the C(--no-recommends) option for I(urpmi).
|
||||
- Alias C(no-recommends) has been deprecated and will be removed in community.general 5.0.0.
|
||||
type: bool
|
||||
default: yes
|
||||
aliases: ['no-recommends']
|
||||
|
@ -195,9 +197,13 @@ def main():
|
|||
argument_spec=dict(
|
||||
state=dict(type='str', default='present',
|
||||
choices=['absent', 'installed', 'present', 'removed']),
|
||||
update_cache=dict(type='bool', default=False, aliases=['update-cache']),
|
||||
update_cache=dict(
|
||||
type='bool', default=False, aliases=['update-cache'],
|
||||
deprecated_aliases=[dict(name='update-cache', version='5.0.0', collection_name='community.general')]),
|
||||
force=dict(type='bool', default=True),
|
||||
no_recommends=dict(type='bool', default=True, aliases=['no-recommends']),
|
||||
no_recommends=dict(
|
||||
type='bool', default=True, aliases=['no-recommends'],
|
||||
deprecated_aliases=[dict(name='no-recommends', version='5.0.0', collection_name='community.general')]),
|
||||
name=dict(type='list', elements='str', required=True, aliases=['package', 'pkg']),
|
||||
root=dict(type='str', aliases=['installroot']),
|
||||
),
|
||||
|
|
|
@ -42,6 +42,7 @@ options:
|
|||
description:
|
||||
- Whether or not to refresh the master package lists. This can be
|
||||
run as part of a package installation or as a separate step.
|
||||
- Alias C(update-cache) has been deprecated and will be removed in community.general 5.0.0.
|
||||
aliases: ['update-cache']
|
||||
type: bool
|
||||
default: yes
|
||||
|
@ -290,8 +291,9 @@ def main():
|
|||
recurse=dict(default=False, type='bool'),
|
||||
force=dict(default=False, type='bool', removed_in_version='3.0.0', removed_from_collection='community.general'),
|
||||
upgrade=dict(default=False, type='bool'),
|
||||
update_cache=dict(default=True, aliases=['update-cache'],
|
||||
type='bool'),
|
||||
update_cache=dict(
|
||||
default=True, aliases=['update-cache'], type='bool',
|
||||
deprecated_aliases=[dict(name='update-cache', version='5.0.0', collection_name='community.general')]),
|
||||
upgrade_xbps=dict(default=True, type='bool')
|
||||
),
|
||||
required_one_of=[['name', 'update_cache', 'upgrade']],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue