|
|
@ -50,12 +50,12 @@ options:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The atime property.
|
|
|
|
- The atime property.
|
|
|
|
required: False
|
|
|
|
required: False
|
|
|
|
choices: [on,off]
|
|
|
|
choices: ['on','off']
|
|
|
|
canmount:
|
|
|
|
canmount:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The canmount property.
|
|
|
|
- The canmount property.
|
|
|
|
required: False
|
|
|
|
required: False
|
|
|
|
choices: [on,off,noauto]
|
|
|
|
choices: ['on','off','noauto']
|
|
|
|
casesensitivity:
|
|
|
|
casesensitivity:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The casesensitivity property.
|
|
|
|
- The casesensitivity property.
|
|
|
@ -65,12 +65,12 @@ options:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The checksum property.
|
|
|
|
- The checksum property.
|
|
|
|
required: False
|
|
|
|
required: False
|
|
|
|
choices: [on,off,fletcher2,fletcher4,sha256]
|
|
|
|
choices: ['on','off',fletcher2,fletcher4,sha256]
|
|
|
|
compression:
|
|
|
|
compression:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The compression property.
|
|
|
|
- The compression property.
|
|
|
|
required: False
|
|
|
|
required: False
|
|
|
|
choices: [on,off,lzjb,gzip,gzip-1,gzip-2,gzip-3,gzip-4,gzip-5,gzip-6,gzip-7,gzip-8,gzip-9]
|
|
|
|
choices: ['on','off',lzjb,gzip,gzip-1,gzip-2,gzip-3,gzip-4,gzip-5,gzip-6,gzip-7,gzip-8,gzip-9]
|
|
|
|
copies:
|
|
|
|
copies:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The copies property.
|
|
|
|
- The copies property.
|
|
|
@ -80,22 +80,22 @@ options:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The dedup property.
|
|
|
|
- The dedup property.
|
|
|
|
required: False
|
|
|
|
required: False
|
|
|
|
choices: [on,off]
|
|
|
|
choices: ['on','off']
|
|
|
|
devices:
|
|
|
|
devices:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The devices property.
|
|
|
|
- The devices property.
|
|
|
|
required: False
|
|
|
|
required: False
|
|
|
|
choices: [on,off]
|
|
|
|
choices: ['on','off']
|
|
|
|
exec:
|
|
|
|
exec:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The exec property.
|
|
|
|
- The exec property.
|
|
|
|
required: False
|
|
|
|
required: False
|
|
|
|
choices: [on,off]
|
|
|
|
choices: ['on','off']
|
|
|
|
jailed:
|
|
|
|
jailed:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The jailed property.
|
|
|
|
- The jailed property.
|
|
|
|
required: False
|
|
|
|
required: False
|
|
|
|
choices: [on,off]
|
|
|
|
choices: ['on','off']
|
|
|
|
logbias:
|
|
|
|
logbias:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The logbias property.
|
|
|
|
- The logbias property.
|
|
|
@ -109,7 +109,7 @@ options:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The nbmand property.
|
|
|
|
- The nbmand property.
|
|
|
|
required: False
|
|
|
|
required: False
|
|
|
|
choices: [on,off]
|
|
|
|
choices: ['on','off']
|
|
|
|
normalization:
|
|
|
|
normalization:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The normalization property.
|
|
|
|
- The normalization property.
|
|
|
@ -128,7 +128,7 @@ options:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The readonly property.
|
|
|
|
- The readonly property.
|
|
|
|
required: False
|
|
|
|
required: False
|
|
|
|
choices: [on,off]
|
|
|
|
choices: ['on','off']
|
|
|
|
recordsize:
|
|
|
|
recordsize:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The recordsize property.
|
|
|
|
- The recordsize property.
|
|
|
@ -154,12 +154,12 @@ options:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The setuid property.
|
|
|
|
- The setuid property.
|
|
|
|
required: False
|
|
|
|
required: False
|
|
|
|
choices: [on,off]
|
|
|
|
choices: ['on','off']
|
|
|
|
shareiscsi:
|
|
|
|
shareiscsi:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The shareiscsi property.
|
|
|
|
- The shareiscsi property.
|
|
|
|
required: False
|
|
|
|
required: False
|
|
|
|
choices: [on,off]
|
|
|
|
choices: ['on','off']
|
|
|
|
sharenfs:
|
|
|
|
sharenfs:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The sharenfs property.
|
|
|
|
- The sharenfs property.
|
|
|
@ -177,12 +177,12 @@ options:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The sync property.
|
|
|
|
- The sync property.
|
|
|
|
required: False
|
|
|
|
required: False
|
|
|
|
choices: [on,off]
|
|
|
|
choices: ['on','off']
|
|
|
|
utf8only:
|
|
|
|
utf8only:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The utf8only property.
|
|
|
|
- The utf8only property.
|
|
|
|
required: False
|
|
|
|
required: False
|
|
|
|
choices: [on,off]
|
|
|
|
choices: ['on','off']
|
|
|
|
volsize:
|
|
|
|
volsize:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The volsize property.
|
|
|
|
- The volsize property.
|
|
|
@ -195,17 +195,17 @@ options:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The vscan property.
|
|
|
|
- The vscan property.
|
|
|
|
required: False
|
|
|
|
required: False
|
|
|
|
choices: [on,off]
|
|
|
|
choices: ['on','off']
|
|
|
|
xattr:
|
|
|
|
xattr:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The xattr property.
|
|
|
|
- The xattr property.
|
|
|
|
required: False
|
|
|
|
required: False
|
|
|
|
choices: [on,off]
|
|
|
|
choices: ['on','off']
|
|
|
|
zoned:
|
|
|
|
zoned:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The zoned property.
|
|
|
|
- The zoned property.
|
|
|
|
required: False
|
|
|
|
required: False
|
|
|
|
choices: [on,off]
|
|
|
|
choices: ['on','off']
|
|
|
|
examples:
|
|
|
|
examples:
|
|
|
|
- code: zfs name=rpool/myfs state=present
|
|
|
|
- code: zfs name=rpool/myfs state=present
|
|
|
|
description: Create a new file system called myfs in pool rpool
|
|
|
|
description: Create a new file system called myfs in pool rpool
|
|
|
@ -321,6 +321,8 @@ class Zfs(object):
|
|
|
|
return module.run_command(cmd)
|
|
|
|
return module.run_command(cmd)
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
def main():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# FIXME: should use dict() constructor like other modules, required=False is default
|
|
|
|
module = AnsibleModule(
|
|
|
|
module = AnsibleModule(
|
|
|
|
argument_spec = {
|
|
|
|
argument_spec = {
|
|
|
|
'name': {'required': True},
|
|
|
|
'name': {'required': True},
|
|
|
|