mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-28 13:21:25 -07:00
Fix module issues (#52209)
This commit is contained in:
parent
cedd9d9926
commit
203caf2570
54 changed files with 290 additions and 238 deletions
|
@ -26,7 +26,7 @@ options:
|
|||
attributes:
|
||||
description:
|
||||
- A list of device attributes.
|
||||
type: list
|
||||
type: dict
|
||||
device:
|
||||
description:
|
||||
- The name of the device.
|
||||
|
|
|
@ -33,7 +33,7 @@ options:
|
|||
attributes:
|
||||
description:
|
||||
- Specifies attributes for files system separated by comma.
|
||||
type: str
|
||||
type: list
|
||||
default: agblksize='4096',isnapshot='no'
|
||||
auto_mount:
|
||||
description:
|
||||
|
|
|
@ -216,7 +216,7 @@ def main():
|
|||
lv_type=dict(type='str', default='jfs2'),
|
||||
size=dict(type='str'),
|
||||
opts=dict(type='str', default=''),
|
||||
copies=dict(type='str', default=1),
|
||||
copies=dict(type='int', default=1),
|
||||
state=dict(type='str', default='present', choices=['absent', 'present']),
|
||||
policy=dict(type='str', default='maximum', choices=['maximum', 'minimum']),
|
||||
pvs=dict(type='list', default=list())
|
||||
|
|
|
@ -662,7 +662,7 @@ def main():
|
|||
argument_spec=dict(
|
||||
user=dict(type='str', required=True),
|
||||
key=dict(type='str', required=True),
|
||||
path=dict(type='str'),
|
||||
path=dict(type='path'),
|
||||
manage_dir=dict(type='bool', default=True),
|
||||
state=dict(type='str', default='present', choices=['absent', 'present']),
|
||||
key_options=dict(type='str'),
|
||||
|
|
|
@ -443,7 +443,7 @@ def main():
|
|||
argument_spec=dict(
|
||||
state=dict(type='str', default='present', choices=['absent', 'present']),
|
||||
name=dict(type='str', required=True),
|
||||
gid=dict(type='str'),
|
||||
gid=dict(type='int'),
|
||||
system=dict(type='bool', default=False),
|
||||
local=dict(type='bool', default=False)
|
||||
),
|
||||
|
|
|
@ -37,7 +37,7 @@ options:
|
|||
description:
|
||||
- The size of the physical extent. pesize must be a power of 2, or multiple of 128KiB.
|
||||
- Since Ansible 2.6, pesize can be optionally suffixed by a UNIT (k/K/m/M/g/G), default unit is megabyte.
|
||||
type: int
|
||||
type: str
|
||||
default: 4
|
||||
pv_options:
|
||||
description:
|
||||
|
|
|
@ -50,12 +50,12 @@ options:
|
|||
service_dir:
|
||||
description:
|
||||
- Directory svscan watches for services
|
||||
type: path
|
||||
type: str
|
||||
default: /service
|
||||
service_src:
|
||||
description:
|
||||
- Directory where services are defined, the source of symlinks to service_dir.
|
||||
type: path
|
||||
type: str
|
||||
default: /etc/service
|
||||
'''
|
||||
|
||||
|
|
|
@ -47,13 +47,13 @@ options:
|
|||
- Run daemon-reload before doing any other operations, to make sure systemd has read any changes.
|
||||
- When set to C(yes), runs daemon-reload even if the module does not start or stop anything.
|
||||
type: bool
|
||||
default: 'no'
|
||||
default: no
|
||||
aliases: [ daemon-reload ]
|
||||
daemon_reexec:
|
||||
description:
|
||||
- Run daemon_reexec command before doing any other operations, the systemd manager will serialize the manager state.
|
||||
type: bool
|
||||
default: 'no'
|
||||
default: no
|
||||
aliases: [ daemon-reexec ]
|
||||
version_added: "2.8"
|
||||
user:
|
||||
|
@ -62,7 +62,7 @@ options:
|
|||
of the system.
|
||||
- This option is deprecated and will eventually be removed in 2.11. The ``scope`` option should be used instead.
|
||||
type: bool
|
||||
default: 'no'
|
||||
default: no
|
||||
scope:
|
||||
description:
|
||||
- run systemctl within a given service manager scope, either as the default system scope (system),
|
||||
|
@ -71,14 +71,13 @@ options:
|
|||
The user dbus process is normally started during normal login, but not during the run of Ansible tasks.
|
||||
Otherwise you will probably get a 'Failed to connect to bus: no such file or directory' error."
|
||||
choices: [ system, user, global ]
|
||||
default: 'system'
|
||||
version_added: "2.7"
|
||||
no_block:
|
||||
description:
|
||||
- Do not synchronously wait for the requested operation to finish.
|
||||
Enqueued job will continue without Ansible blocking on its completion.
|
||||
type: bool
|
||||
default: 'no'
|
||||
default: no
|
||||
version_added: "2.3"
|
||||
notes:
|
||||
- Since 2.4, one of the following options is required 'state', 'enabled', 'masked', 'daemon_reload', and all except 'daemon_reload' also require 'name'.
|
||||
|
|
|
@ -2597,7 +2597,7 @@ def main():
|
|||
argument_spec=dict(
|
||||
state=dict(type='str', default='present', choices=['absent', 'present']),
|
||||
name=dict(type='str', required=True, aliases=['user']),
|
||||
uid=dict(type='str'),
|
||||
uid=dict(type='int'),
|
||||
non_unique=dict(type='bool', default=False),
|
||||
group=dict(type='str'),
|
||||
groups=dict(type='list'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue