Reduce ignored packaging sanity tests (#568)

* Remove all packaging sanity tests to see errors

* fix

* Fix

* Minor fixes

* Fix

* Fix redhat

* Fix redhat_subscription

* Fix redhat_subscription

* Fix redhat_subscription

* Ignore redhat_subscription return-syntax-error

* Remove more ignored sanity tests

* Remove force from xbps argument_spec as it doesn't do anything(?)

* Remove unnecessary sanity test for xbps

* Fix suggestions made by felixfontein

* Better changelog description, fix portage wrong default values

* Fix

* Fix

* Remove root default from urpmi doc

* Fix wrong type of default for booleans

* Add default value as suggested by felixfontein

* Fix changelog
This commit is contained in:
Amin Vakil
2020-06-26 17:47:11 +04:30
committed by GitHub
parent 99b7573dfb
commit 72ca27a6ae
36 changed files with 259 additions and 246 deletions

View File

@@ -22,29 +22,34 @@ options:
name:
description:
- Name of the package to install, upgrade, or remove.
aliases: [pkg,package]
type: list
elements: str
state:
description:
- Desired state of the package.
default: "present"
choices: ["present", "absent", "latest"]
type: str
recurse:
description:
- When removing a package, also remove its dependencies, provided
that they are not required by other packages and were not
explicitly installed by a user.
type: bool
default: 'no'
default: no
update_cache:
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.
aliases: ['update-cache']
type: bool
default: 'yes'
default: yes
upgrade:
description:
- Whether or not to upgrade whole system
type: bool
default: 'no'
default: no
upgrade_xbps:
description:
- Whether or not to upgrade the xbps package when necessary.
@@ -53,8 +58,14 @@ options:
Thus when this option is set to C(no),
upgrades and installations will fail when xbps is not up to date.
type: bool
default: 'yes'
default: yes
version_added: '0.2.0'
force:
description:
- This option doesn't have any effect and is deprecated, it will be
removed in 3.0.0.
type: bool
default: no
'''
EXAMPLES = '''
@@ -272,12 +283,12 @@ def main():
module = AnsibleModule(
argument_spec=dict(
name=dict(default=None, aliases=['pkg', 'package'], type='list'),
name=dict(default=None, aliases=['pkg', 'package'], type='list', elements='str'),
state=dict(default='present', choices=['present', 'installed',
'latest', 'absent',
'removed']),
recurse=dict(default=False, type='bool'),
force=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'),