mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
filesystem: fix documentation (#36556)
This commit is contained in:
parent
62f237f21e
commit
07927f52ae
2 changed files with 5 additions and 3 deletions
|
@ -30,10 +30,12 @@ options:
|
|||
- since 2.5, I(dev) can be an image file.
|
||||
- vfat support was added in 2.5
|
||||
required: yes
|
||||
aliases: [type]
|
||||
dev:
|
||||
description:
|
||||
- Target path to device or image file.
|
||||
required: yes
|
||||
aliases: [device]
|
||||
force:
|
||||
description:
|
||||
- If C(yes), allows to create new filesystem on devices that already has filesystem.
|
||||
|
@ -276,11 +278,13 @@ def main():
|
|||
'lvm': 'LVM2_member',
|
||||
}
|
||||
|
||||
fstypes = set(FILESYSTEMS.keys()) - set(friendly_names.values()) | set(friendly_names.keys())
|
||||
|
||||
# There is no "single command" to manipulate filesystems, so we map them all out and their options
|
||||
module = AnsibleModule(
|
||||
argument_spec=dict(
|
||||
fstype=dict(required=True, aliases=['type'],
|
||||
choices=list(FILESYSTEMS.keys()) + list(friendly_names.keys())),
|
||||
choices=list(fstypes)),
|
||||
dev=dict(required=True, aliases=['device']),
|
||||
opts=dict(),
|
||||
force=dict(type='bool', default=False),
|
||||
|
|
|
@ -2796,8 +2796,6 @@ lib/ansible/modules/system/beadm.py E325
|
|||
lib/ansible/modules/system/beadm.py E326
|
||||
lib/ansible/modules/system/capabilities.py E322
|
||||
lib/ansible/modules/system/debconf.py E326
|
||||
lib/ansible/modules/system/filesystem.py E322
|
||||
lib/ansible/modules/system/filesystem.py E326
|
||||
lib/ansible/modules/system/firewalld.py E322
|
||||
lib/ansible/modules/system/firewalld.py E324
|
||||
lib/ansible/modules/system/firewalld.py E325
|
||||
|
|
Loading…
Reference in a new issue