1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-01 09:56:18 +00:00

arg_spec adjustments: modules [o-s]* (#10512)

* arg_spec adjustments: modules [o-s]*

* add changelog frag
This commit is contained in:
Alexei Znamensky 2025-08-01 08:46:32 +12:00 committed by GitHub
parent 5601ef4c57
commit 3bb7a77b14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
42 changed files with 210 additions and 205 deletions

View file

@ -422,17 +422,17 @@ def autoremove_packages(module, run_pkgng):
def main():
module = AnsibleModule(
argument_spec=dict(
state=dict(default="present", choices=["present", "latest", "absent"], required=False),
state=dict(default="present", choices=["present", "latest", "absent"]),
name=dict(aliases=["pkg"], required=True, type='list', elements='str'),
cached=dict(default=False, type='bool'),
ignore_osver=dict(default=False, required=False, type='bool'),
annotation=dict(required=False, type='list', elements='str'),
pkgsite=dict(required=False),
rootdir=dict(required=False, type='path'),
chroot=dict(required=False, type='path'),
jail=dict(required=False, type='str'),
ignore_osver=dict(default=False, type='bool'),
annotation=dict(type='list', elements='str'),
pkgsite=dict(),
rootdir=dict(type='path'),
chroot=dict(type='path'),
jail=dict(type='str'),
autoremove=dict(default=False, type='bool'),
use_globs=dict(default=True, required=False, type='bool'),
use_globs=dict(default=True, type='bool'),
),
supports_check_mode=True,
mutually_exclusive=[["rootdir", "chroot", "jail"]])