filesystem: fix documentation (#36556) (#36633)

(cherry picked from commit 07927f52ae)
pull/37058/head
John R Barker 7 years ago committed by GitHub
parent f48d636500
commit e03b17e2e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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),

@ -428,7 +428,6 @@ lib/ansible/modules/storage/zfs/zfs_facts.py E323
lib/ansible/modules/storage/zfs/zpool_facts.py E323
lib/ansible/modules/system/authorized_key.py E322
lib/ansible/modules/system/capabilities.py E322
lib/ansible/modules/system/filesystem.py E322
lib/ansible/modules/system/firewalld.py E322
lib/ansible/modules/system/gluster_volume.py E322
lib/ansible/modules/system/make.py E317

Loading…
Cancel
Save