mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 11:10:21 -07:00
parent
91b7bee3da
commit
d14dee9ceb
1 changed files with 3 additions and 0 deletions
|
@ -29,6 +29,7 @@ options:
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
- Name or list of names of the package(s) or file(s) to install, upgrade, or remove.
|
- Name or list of names of the package(s) or file(s) to install, upgrade, or remove.
|
||||||
|
Can't be used in combination with C(upgrade).
|
||||||
aliases: [ package, pkg ]
|
aliases: [ package, pkg ]
|
||||||
|
|
||||||
state:
|
state:
|
||||||
|
@ -81,6 +82,7 @@ options:
|
||||||
upgrade:
|
upgrade:
|
||||||
description:
|
description:
|
||||||
- Whether or not to upgrade the whole system.
|
- Whether or not to upgrade the whole system.
|
||||||
|
Can't be used in combination with C(name).
|
||||||
default: no
|
default: no
|
||||||
type: bool
|
type: bool
|
||||||
version_added: "2.0"
|
version_added: "2.0"
|
||||||
|
@ -419,6 +421,7 @@ def main():
|
||||||
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']],
|
||||||
|
mutually_exclusive=[['name', 'upgrade']],
|
||||||
supports_check_mode=True,
|
supports_check_mode=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue