mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02: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
12
changelogs/fragments/1927-removed-parameter-invalid.yml
Normal file
12
changelogs/fragments/1927-removed-parameter-invalid.yml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
deprecated_features:
|
||||||
|
- composer - deprecated invalid parameter aliases ``working-dir``, ``global-command``, ``prefer-source``, ``prefer-dist``, ``no-dev``, ``no-scripts``, ``no-plugins``, ``optimize-autoloader``, ``classmap-authoritative``, ``apcu-autoloader``, ``ignore-platform-reqs``, will be removed in 5.0.0 (https://github.com/ansible-collections/community.general/pull/1927).
|
||||||
|
- apt_rpm - deprecated invalid parameter alias ``update-cache``, will be removed in 5.0.0 (https://github.com/ansible-collections/community.general/pull/1927).
|
||||||
|
- homebrew - deprecated invalid parameter alias ``update-brew``, will be removed in 5.0.0 (https://github.com/ansible-collections/community.general/pull/1927).
|
||||||
|
- homebrew_cask - deprecated invalid parameter alias ``update-brew``, will be removed in 5.0.0 (https://github.com/ansible-collections/community.general/pull/1927).
|
||||||
|
- opkg - deprecated invalid parameter alias ``update-cache``, will be removed in 5.0.0 (https://github.com/ansible-collections/community.general/pull/1927).
|
||||||
|
- pacman - deprecated invalid parameter alias ``update-cache``, will be removed in 5.0.0 (https://github.com/ansible-collections/community.general/pull/1927).
|
||||||
|
- slackpkg - deprecated invalid parameter alias ``update-cache``, will be removed in 5.0.0 (https://github.com/ansible-collections/community.general/pull/1927).
|
||||||
|
- urmpi - deprecated invalid parameter aliases ``update-cache`` and ``no-recommends``, will be removed in 5.0.0 (https://github.com/ansible-collections/community.general/pull/1927).
|
||||||
|
- xbps - deprecated invalid parameter alias ``update-cache``, will be removed in 5.0.0 (https://github.com/ansible-collections/community.general/pull/1927).
|
||||||
|
- github_deploy_key - deprecated invalid parameter alias ``2fa_token``, will be removed in 5.0.0 (https://github.com/ansible-collections/community.general/pull/1927).
|
||||||
|
- puppet - deprecated undocumented parameter ``show_diff``, will be removed in 7.0.0. (https://github.com/ansible-collections/community.general/pull/1927).
|
|
@ -41,40 +41,47 @@ options:
|
||||||
- Directory of your project (see --working-dir). This is required when
|
- Directory of your project (see --working-dir). This is required when
|
||||||
the command is not run globally.
|
the command is not run globally.
|
||||||
- Will be ignored if C(global_command=true).
|
- Will be ignored if C(global_command=true).
|
||||||
|
- Alias C(working-dir) has been deprecated and will be removed in community.general 5.0.0.
|
||||||
aliases: [ working-dir ]
|
aliases: [ working-dir ]
|
||||||
global_command:
|
global_command:
|
||||||
description:
|
description:
|
||||||
- Runs the specified command globally.
|
- Runs the specified command globally.
|
||||||
|
- Alias C(global-command) has been deprecated and will be removed in community.general 5.0.0.
|
||||||
type: bool
|
type: bool
|
||||||
default: false
|
default: false
|
||||||
aliases: [ global-command ]
|
aliases: [ global-command ]
|
||||||
prefer_source:
|
prefer_source:
|
||||||
description:
|
description:
|
||||||
- Forces installation from package sources when possible (see --prefer-source).
|
- Forces installation from package sources when possible (see --prefer-source).
|
||||||
|
- Alias C(prefer-source) has been deprecated and will be removed in community.general 5.0.0.
|
||||||
default: false
|
default: false
|
||||||
type: bool
|
type: bool
|
||||||
aliases: [ prefer-source ]
|
aliases: [ prefer-source ]
|
||||||
prefer_dist:
|
prefer_dist:
|
||||||
description:
|
description:
|
||||||
- Forces installation from package dist even for dev versions (see --prefer-dist).
|
- Forces installation from package dist even for dev versions (see --prefer-dist).
|
||||||
|
- Alias C(prefer-dist) has been deprecated and will be removed in community.general 5.0.0.
|
||||||
default: false
|
default: false
|
||||||
type: bool
|
type: bool
|
||||||
aliases: [ prefer-dist ]
|
aliases: [ prefer-dist ]
|
||||||
no_dev:
|
no_dev:
|
||||||
description:
|
description:
|
||||||
- Disables installation of require-dev packages (see --no-dev).
|
- Disables installation of require-dev packages (see --no-dev).
|
||||||
|
- Alias C(no-dev) has been deprecated and will be removed in community.general 5.0.0.
|
||||||
default: true
|
default: true
|
||||||
type: bool
|
type: bool
|
||||||
aliases: [ no-dev ]
|
aliases: [ no-dev ]
|
||||||
no_scripts:
|
no_scripts:
|
||||||
description:
|
description:
|
||||||
- Skips the execution of all scripts defined in composer.json (see --no-scripts).
|
- Skips the execution of all scripts defined in composer.json (see --no-scripts).
|
||||||
|
- Alias C(no-scripts) has been deprecated and will be removed in community.general 5.0.0.
|
||||||
default: false
|
default: false
|
||||||
type: bool
|
type: bool
|
||||||
aliases: [ no-scripts ]
|
aliases: [ no-scripts ]
|
||||||
no_plugins:
|
no_plugins:
|
||||||
description:
|
description:
|
||||||
- Disables all plugins ( see --no-plugins ).
|
- Disables all plugins ( see --no-plugins ).
|
||||||
|
- Alias C(no-plugins) has been deprecated and will be removed in community.general 5.0.0.
|
||||||
default: false
|
default: false
|
||||||
type: bool
|
type: bool
|
||||||
aliases: [ no-plugins ]
|
aliases: [ no-plugins ]
|
||||||
|
@ -83,6 +90,7 @@ options:
|
||||||
- Optimize autoloader during autoloader dump (see --optimize-autoloader).
|
- Optimize autoloader during autoloader dump (see --optimize-autoloader).
|
||||||
- Convert PSR-0/4 autoloading to classmap to get a faster autoloader.
|
- Convert PSR-0/4 autoloading to classmap to get a faster autoloader.
|
||||||
- Recommended especially for production, but can take a bit of time to run.
|
- Recommended especially for production, but can take a bit of time to run.
|
||||||
|
- Alias C(optimize-autoloader) has been deprecated and will be removed in community.general 5.0.0.
|
||||||
default: true
|
default: true
|
||||||
type: bool
|
type: bool
|
||||||
aliases: [ optimize-autoloader ]
|
aliases: [ optimize-autoloader ]
|
||||||
|
@ -91,18 +99,21 @@ options:
|
||||||
- Autoload classes from classmap only.
|
- Autoload classes from classmap only.
|
||||||
- Implicitely enable optimize_autoloader.
|
- Implicitely enable optimize_autoloader.
|
||||||
- Recommended especially for production, but can take a bit of time to run.
|
- Recommended especially for production, but can take a bit of time to run.
|
||||||
|
- Alias C(classmap-authoritative) has been deprecated and will be removed in community.general 5.0.0.
|
||||||
default: false
|
default: false
|
||||||
type: bool
|
type: bool
|
||||||
aliases: [ classmap-authoritative ]
|
aliases: [ classmap-authoritative ]
|
||||||
apcu_autoloader:
|
apcu_autoloader:
|
||||||
description:
|
description:
|
||||||
- Uses APCu to cache found/not-found classes
|
- Uses APCu to cache found/not-found classes
|
||||||
|
- Alias C(apcu-autoloader) has been deprecated and will be removed in community.general 5.0.0.
|
||||||
default: false
|
default: false
|
||||||
type: bool
|
type: bool
|
||||||
aliases: [ apcu-autoloader ]
|
aliases: [ apcu-autoloader ]
|
||||||
ignore_platform_reqs:
|
ignore_platform_reqs:
|
||||||
description:
|
description:
|
||||||
- Ignore php, hhvm, lib-* and ext-* requirements and force the installation even if the local machine does not fulfill these.
|
- Ignore php, hhvm, lib-* and ext-* requirements and force the installation even if the local machine does not fulfill these.
|
||||||
|
- Alias C(ignore-platform-reqs) has been deprecated and will be removed in community.general 5.0.0.
|
||||||
default: false
|
default: false
|
||||||
type: bool
|
type: bool
|
||||||
aliases: [ ignore-platform-reqs ]
|
aliases: [ ignore-platform-reqs ]
|
||||||
|
@ -187,17 +198,39 @@ def main():
|
||||||
command=dict(default="install", type="str"),
|
command=dict(default="install", type="str"),
|
||||||
arguments=dict(default="", type="str"),
|
arguments=dict(default="", type="str"),
|
||||||
executable=dict(type="path", aliases=["php_path"]),
|
executable=dict(type="path", aliases=["php_path"]),
|
||||||
working_dir=dict(type="path", aliases=["working-dir"]),
|
working_dir=dict(
|
||||||
global_command=dict(default=False, type="bool", aliases=["global-command"]),
|
type="path", aliases=["working-dir"],
|
||||||
prefer_source=dict(default=False, type="bool", aliases=["prefer-source"]),
|
deprecated_aliases=[dict(name='working-dir', version='5.0.0', collection_name='community.general')]),
|
||||||
prefer_dist=dict(default=False, type="bool", aliases=["prefer-dist"]),
|
global_command=dict(
|
||||||
no_dev=dict(default=True, type="bool", aliases=["no-dev"]),
|
default=False, type="bool", aliases=["global-command"],
|
||||||
no_scripts=dict(default=False, type="bool", aliases=["no-scripts"]),
|
deprecated_aliases=[dict(name='global-command', version='5.0.0', collection_name='community.general')]),
|
||||||
no_plugins=dict(default=False, type="bool", aliases=["no-plugins"]),
|
prefer_source=dict(
|
||||||
apcu_autoloader=dict(default=False, type="bool", aliases=["apcu-autoloader"]),
|
default=False, type="bool", aliases=["prefer-source"],
|
||||||
optimize_autoloader=dict(default=True, type="bool", aliases=["optimize-autoloader"]),
|
deprecated_aliases=[dict(name='prefer-source', version='5.0.0', collection_name='community.general')]),
|
||||||
classmap_authoritative=dict(default=False, type="bool", aliases=["classmap-authoritative"]),
|
prefer_dist=dict(
|
||||||
ignore_platform_reqs=dict(default=False, type="bool", aliases=["ignore-platform-reqs"]),
|
default=False, type="bool", aliases=["prefer-dist"],
|
||||||
|
deprecated_aliases=[dict(name='prefer-dist', version='5.0.0', collection_name='community.general')]),
|
||||||
|
no_dev=dict(
|
||||||
|
default=True, type="bool", aliases=["no-dev"],
|
||||||
|
deprecated_aliases=[dict(name='no-dev', version='5.0.0', collection_name='community.general')]),
|
||||||
|
no_scripts=dict(
|
||||||
|
default=False, type="bool", aliases=["no-scripts"],
|
||||||
|
deprecated_aliases=[dict(name='no-scripts', version='5.0.0', collection_name='community.general')]),
|
||||||
|
no_plugins=dict(
|
||||||
|
default=False, type="bool", aliases=["no-plugins"],
|
||||||
|
deprecated_aliases=[dict(name='no-plugins', version='5.0.0', collection_name='community.general')]),
|
||||||
|
apcu_autoloader=dict(
|
||||||
|
default=False, type="bool", aliases=["apcu-autoloader"],
|
||||||
|
deprecated_aliases=[dict(name='apcu-autoloader', version='5.0.0', collection_name='community.general')]),
|
||||||
|
optimize_autoloader=dict(
|
||||||
|
default=True, type="bool", aliases=["optimize-autoloader"],
|
||||||
|
deprecated_aliases=[dict(name='optimize-autoloader', version='5.0.0', collection_name='community.general')]),
|
||||||
|
classmap_authoritative=dict(
|
||||||
|
default=False, type="bool", aliases=["classmap-authoritative"],
|
||||||
|
deprecated_aliases=[dict(name='classmap-authoritative', version='5.0.0', collection_name='community.general')]),
|
||||||
|
ignore_platform_reqs=dict(
|
||||||
|
default=False, type="bool", aliases=["ignore-platform-reqs"],
|
||||||
|
deprecated_aliases=[dict(name='ignore-platform-reqs', version='5.0.0', collection_name='community.general')]),
|
||||||
),
|
),
|
||||||
required_if=[('global_command', False, ['working_dir'])],
|
required_if=[('global_command', False, ['working_dir'])],
|
||||||
supports_check_mode=True
|
supports_check_mode=True
|
||||||
|
|
|
@ -33,6 +33,7 @@ options:
|
||||||
update_cache:
|
update_cache:
|
||||||
description:
|
description:
|
||||||
- update the package database first C(apt-get update).
|
- 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' ]
|
aliases: [ 'update-cache' ]
|
||||||
type: bool
|
type: bool
|
||||||
default: no
|
default: no
|
||||||
|
@ -157,7 +158,9 @@ def main():
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
state=dict(type='str', default='present', choices=['absent', 'installed', 'present', 'removed']),
|
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']),
|
package=dict(type='list', elements='str', required=True, aliases=['name', 'pkg']),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
|
@ -49,6 +49,7 @@ options:
|
||||||
update_homebrew:
|
update_homebrew:
|
||||||
description:
|
description:
|
||||||
- update homebrew itself first.
|
- update homebrew itself first.
|
||||||
|
- Alias C(update-brew) has been deprecated and will be removed in community.general 5.0.0.
|
||||||
type: bool
|
type: bool
|
||||||
default: no
|
default: no
|
||||||
aliases: ['update-brew']
|
aliases: ['update-brew']
|
||||||
|
@ -888,6 +889,7 @@ def main():
|
||||||
default=False,
|
default=False,
|
||||||
aliases=["update-brew"],
|
aliases=["update-brew"],
|
||||||
type='bool',
|
type='bool',
|
||||||
|
deprecated_aliases=[dict(name='update-brew', version='5.0.0', collection_name='community.general')],
|
||||||
),
|
),
|
||||||
upgrade_all=dict(
|
upgrade_all=dict(
|
||||||
default=False,
|
default=False,
|
||||||
|
|
|
@ -49,6 +49,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Update homebrew itself first.
|
- Update homebrew itself first.
|
||||||
- Note that C(brew cask update) is a synonym for C(brew update).
|
- 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
|
type: bool
|
||||||
default: no
|
default: no
|
||||||
aliases: [ 'update-brew' ]
|
aliases: [ 'update-brew' ]
|
||||||
|
@ -800,6 +801,7 @@ def main():
|
||||||
default=False,
|
default=False,
|
||||||
aliases=["update-brew"],
|
aliases=["update-brew"],
|
||||||
type='bool',
|
type='bool',
|
||||||
|
deprecated_aliases=[dict(name='update-brew', version='5.0.0', collection_name='community.general')],
|
||||||
),
|
),
|
||||||
install_options=dict(
|
install_options=dict(
|
||||||
default=None,
|
default=None,
|
||||||
|
|
|
@ -49,6 +49,7 @@ options:
|
||||||
update_cache:
|
update_cache:
|
||||||
description:
|
description:
|
||||||
- update the package db first
|
- 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']
|
aliases: ['update-cache']
|
||||||
default: "no"
|
default: "no"
|
||||||
type: bool
|
type: bool
|
||||||
|
@ -173,7 +174,9 @@ def main():
|
||||||
state=dict(default="present", choices=["present", "installed", "absent", "removed"]),
|
state=dict(default="present", choices=["present", "installed", "absent", "removed"]),
|
||||||
force=dict(default="", choices=["", "depends", "maintainer", "reinstall", "overwrite", "downgrade", "space", "postinstall", "remove",
|
force=dict(default="", choices=["", "depends", "maintainer", "reinstall", "overwrite", "downgrade", "space", "postinstall", "remove",
|
||||||
"checksum", "removal-of-dependent-packages"]),
|
"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:
|
description:
|
||||||
- Whether or not to refresh the master package lists.
|
- Whether or not to refresh the master package lists.
|
||||||
- This can be run as part of a package installation or as a separate step.
|
- 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
|
default: no
|
||||||
type: bool
|
type: bool
|
||||||
aliases: [ update-cache ]
|
aliases: [ update-cache ]
|
||||||
|
@ -421,7 +422,9 @@ def main():
|
||||||
extra_args=dict(type='str', default=''),
|
extra_args=dict(type='str', default=''),
|
||||||
upgrade=dict(type='bool', default=False),
|
upgrade=dict(type='bool', default=False),
|
||||||
upgrade_extra_args=dict(type='str', default=''),
|
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=''),
|
update_cache_extra_args=dict(type='str', default=''),
|
||||||
),
|
),
|
||||||
required_one_of=[['name', 'update_cache', 'upgrade']],
|
required_one_of=[['name', 'update_cache', 'upgrade']],
|
||||||
|
|
|
@ -41,6 +41,7 @@ options:
|
||||||
update_cache:
|
update_cache:
|
||||||
description:
|
description:
|
||||||
- update the package database first
|
- update the package database first
|
||||||
|
- Alias C(update-cache) has been deprecated and will be removed in community.general 5.0.0.
|
||||||
required: false
|
required: false
|
||||||
default: false
|
default: false
|
||||||
type: bool
|
type: bool
|
||||||
|
@ -177,8 +178,9 @@ def main():
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
state=dict(default="present", choices=['installed', 'removed', 'absent', 'present', 'latest']),
|
state=dict(default="present", choices=['installed', 'removed', 'absent', 'present', 'latest']),
|
||||||
name=dict(aliases=["pkg"], required=True, type='list', elements='str'),
|
name=dict(aliases=["pkg"], required=True, type='list', elements='str'),
|
||||||
update_cache=dict(default=False, aliases=["update-cache"],
|
update_cache=dict(
|
||||||
type='bool'),
|
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)
|
supports_check_mode=True)
|
||||||
|
|
||||||
|
|
|
@ -33,12 +33,14 @@ options:
|
||||||
update_cache:
|
update_cache:
|
||||||
description:
|
description:
|
||||||
- Update the package database first C(urpmi.update -a).
|
- 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
|
type: bool
|
||||||
default: no
|
default: no
|
||||||
aliases: ['update-cache']
|
aliases: ['update-cache']
|
||||||
no_recommends:
|
no_recommends:
|
||||||
description:
|
description:
|
||||||
- Corresponds to the C(--no-recommends) option for I(urpmi).
|
- 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
|
type: bool
|
||||||
default: yes
|
default: yes
|
||||||
aliases: ['no-recommends']
|
aliases: ['no-recommends']
|
||||||
|
@ -195,9 +197,13 @@ def main():
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
state=dict(type='str', default='present',
|
state=dict(type='str', default='present',
|
||||||
choices=['absent', 'installed', 'present', 'removed']),
|
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),
|
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']),
|
name=dict(type='list', elements='str', required=True, aliases=['package', 'pkg']),
|
||||||
root=dict(type='str', aliases=['installroot']),
|
root=dict(type='str', aliases=['installroot']),
|
||||||
),
|
),
|
||||||
|
|
|
@ -42,6 +42,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Whether or not to refresh the master package lists. This can be
|
- Whether or not to refresh the master package lists. This can be
|
||||||
run as part of a package installation or as a separate step.
|
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']
|
aliases: ['update-cache']
|
||||||
type: bool
|
type: bool
|
||||||
default: yes
|
default: yes
|
||||||
|
@ -290,8 +291,9 @@ def main():
|
||||||
recurse=dict(default=False, type='bool'),
|
recurse=dict(default=False, type='bool'),
|
||||||
force=dict(default=False, type='bool', removed_in_version='3.0.0', removed_from_collection='community.general'),
|
force=dict(default=False, type='bool', removed_in_version='3.0.0', removed_from_collection='community.general'),
|
||||||
upgrade=dict(default=False, type='bool'),
|
upgrade=dict(default=False, type='bool'),
|
||||||
update_cache=dict(default=True, aliases=['update-cache'],
|
update_cache=dict(
|
||||||
type='bool'),
|
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')
|
upgrade_xbps=dict(default=True, type='bool')
|
||||||
),
|
),
|
||||||
required_one_of=[['name', 'update_cache', 'upgrade']],
|
required_one_of=[['name', 'update_cache', 'upgrade']],
|
||||||
|
|
|
@ -78,6 +78,7 @@ options:
|
||||||
otp:
|
otp:
|
||||||
description:
|
description:
|
||||||
- The 6 digit One Time Password for 2-Factor Authentication. Required together with I(username) and I(password).
|
- The 6 digit One Time Password for 2-Factor Authentication. Required together with I(username) and I(password).
|
||||||
|
- Alias C(2fa_token) has been deprecated and will be removed in community.general 5.0.0.
|
||||||
aliases: ['2fa_token']
|
aliases: ['2fa_token']
|
||||||
type: int
|
type: int
|
||||||
notes:
|
notes:
|
||||||
|
@ -297,7 +298,9 @@ def main():
|
||||||
force=dict(required=False, type='bool', default=False),
|
force=dict(required=False, type='bool', default=False),
|
||||||
username=dict(required=False, type='str'),
|
username=dict(required=False, type='str'),
|
||||||
password=dict(required=False, type='str', no_log=True),
|
password=dict(required=False, type='str', no_log=True),
|
||||||
otp=dict(required=False, type='int', aliases=['2fa_token'], no_log=True),
|
otp=dict(
|
||||||
|
required=False, type='int', aliases=['2fa_token'], no_log=True,
|
||||||
|
deprecated_aliases=[dict(name='2fa_token', version='5.0.0', collection_name='community.general')]),
|
||||||
token=dict(required=False, type='str', no_log=True)
|
token=dict(required=False, type='str', no_log=True)
|
||||||
),
|
),
|
||||||
mutually_exclusive=[
|
mutually_exclusive=[
|
||||||
|
|
|
@ -171,12 +171,11 @@ def main():
|
||||||
puppetmaster=dict(type='str'),
|
puppetmaster=dict(type='str'),
|
||||||
modulepath=dict(type='str'),
|
modulepath=dict(type='str'),
|
||||||
manifest=dict(type='str'),
|
manifest=dict(type='str'),
|
||||||
noop=dict(required=False, type='bool'),
|
noop=dict(type='bool'),
|
||||||
logdest=dict(type='str', default='stdout', choices=['all',
|
logdest=dict(type='str', default='stdout', choices=['all', 'stdout', 'syslog']),
|
||||||
'stdout',
|
show_diff=dict(
|
||||||
'syslog']),
|
type='bool', default=False, aliases=['show-diff'],
|
||||||
# internal code to work with --diff, do not use
|
removed_in_version='7.0.0', removed_from_collection='community.general'),
|
||||||
show_diff=dict(type='bool', default=False, aliases=['show-diff']),
|
|
||||||
facts=dict(type='dict'),
|
facts=dict(type='dict'),
|
||||||
facter_basename=dict(type='str', default='ansible'),
|
facter_basename=dict(type='str', default='ansible'),
|
||||||
environment=dict(type='str'),
|
environment=dict(type='str'),
|
||||||
|
|
|
@ -205,9 +205,7 @@ plugins/modules/system/osx_defaults.py validate-modules:parameter-state-invalid-
|
||||||
plugins/modules/system/parted.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/system/parted.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/system/puppet.py use-argspec-type-path
|
plugins/modules/system/puppet.py use-argspec-type-path
|
||||||
plugins/modules/system/puppet.py validate-modules:doc-default-does-not-match-spec # show_diff is not documented
|
plugins/modules/system/puppet.py validate-modules:doc-default-does-not-match-spec # show_diff is not documented
|
||||||
plugins/modules/system/puppet.py validate-modules:parameter-invalid
|
|
||||||
plugins/modules/system/puppet.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/system/puppet.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/system/puppet.py validate-modules:undocumented-parameter
|
|
||||||
plugins/modules/system/runit.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/system/runit.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/system/ssh_config.py use-argspec-type-path # Required since module uses other methods to specify path
|
plugins/modules/system/ssh_config.py use-argspec-type-path # Required since module uses other methods to specify path
|
||||||
plugins/modules/system/xfconf.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/system/xfconf.py validate-modules:parameter-state-invalid-choice
|
||||||
|
|
|
@ -204,9 +204,7 @@ plugins/modules/system/osx_defaults.py validate-modules:parameter-state-invalid-
|
||||||
plugins/modules/system/parted.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/system/parted.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/system/puppet.py use-argspec-type-path
|
plugins/modules/system/puppet.py use-argspec-type-path
|
||||||
plugins/modules/system/puppet.py validate-modules:doc-default-does-not-match-spec # show_diff is not documented
|
plugins/modules/system/puppet.py validate-modules:doc-default-does-not-match-spec # show_diff is not documented
|
||||||
plugins/modules/system/puppet.py validate-modules:parameter-invalid
|
|
||||||
plugins/modules/system/puppet.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/system/puppet.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/system/puppet.py validate-modules:undocumented-parameter
|
|
||||||
plugins/modules/system/runit.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/system/runit.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/system/ssh_config.py use-argspec-type-path # Required since module uses other methods to specify path
|
plugins/modules/system/ssh_config.py use-argspec-type-path # Required since module uses other methods to specify path
|
||||||
plugins/modules/system/xfconf.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/system/xfconf.py validate-modules:parameter-state-invalid-choice
|
||||||
|
|
|
@ -220,9 +220,7 @@ plugins/modules/storage/purestorage/purefb_facts.py validate-modules:return-synt
|
||||||
plugins/modules/system/iptables_state.py validate-modules:undocumented-parameter
|
plugins/modules/system/iptables_state.py validate-modules:undocumented-parameter
|
||||||
plugins/modules/system/launchd.py use-argspec-type-path # False positive
|
plugins/modules/system/launchd.py use-argspec-type-path # False positive
|
||||||
plugins/modules/system/puppet.py use-argspec-type-path
|
plugins/modules/system/puppet.py use-argspec-type-path
|
||||||
plugins/modules/system/puppet.py validate-modules:parameter-invalid
|
|
||||||
plugins/modules/system/puppet.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/system/puppet.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/system/puppet.py validate-modules:undocumented-parameter
|
|
||||||
plugins/modules/system/runit.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/system/runit.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/system/ssh_config.py use-argspec-type-path # Required since module uses other methods to specify path
|
plugins/modules/system/ssh_config.py use-argspec-type-path # Required since module uses other methods to specify path
|
||||||
plugins/modules/system/xfconf.py validate-modules:return-syntax-error
|
plugins/modules/system/xfconf.py validate-modules:return-syntax-error
|
||||||
|
|
Loading…
Reference in a new issue