ANSIBLE.ZFS(3)

NAME
zfs - Manage zfs

DESCRIPTION

Manages ZFS file systems on Solaris and FreeBSD. Can manage file systems, volumes and snapshots. See zfs(1M) for more information about the properties.

OPTIONS

aclinherit
    The aclinherit property. Choices: discard,noallow,restricted,passthrough,passthrough-x.

aclmode
    The aclmode property. Choices: discard,groupmask,passthrough.

atime
    The atime property. Choices: yes,no.

canmount
    The canmount property. Choices: yes,no,noauto.

casesensitivity
    The casesensitivity property. Choices: sensitive,insensitive,mixed.

checksum
    The checksum property. Choices: yes,no,fletcher2,fletcher4,sha256.

compression
    The compression property. Choices: yes,no,lzjb,gzip,gzip-1,gzip-2,gzip-3,gzip-4,gzip-5,gzip-6,gzip-7,gzip-8,gzip-9.

copies
    The copies property. Choices: yes,2,3.

dedup
    The dedup property. Choices: yes,no.

devices
    The devices property. Choices: yes,no.

exec
    The exec property. Choices: yes,no.

jailed
    The jailed property. Choices: yes,no.

logbias
    The logbias property. Choices: latency,throughput.

mountpoint
    The mountpoint property.

name
    File system, snapshot or volume name e.g. rpool/myfs(required)

nbmand
    The nbmand property. Choices: yes,no.

normalization
    The normalization property. Choices: none,formC,formD,formKC,formKD.

primarycache
    The primarycache property. Choices: all,none,metadata.

quota
    The quota property.

readonly
    The readonly property. Choices: yes,no.

recordsize
    The recordsize property.

refquota
    The refquota property.

refreservation
    The refreservation property.

reservation
    The reservation property.

secondarycache
    The secondarycache property. Choices: all,none,metadata.

setuid
    The setuid property. Choices: yes,no.

shareiscsi
    The shareiscsi property. Choices: yes,no.

sharenfs
    The sharenfs property.

sharesmb
    The sharesmb property.

snapdir
    The snapdir property. Choices: hidden,visible.

state
    Whether to create (present), or remove (absent) a file system, snapshot or volume. Choices: present,absent.(required)

sync
    The sync property. Choices: yes,no.

utf8only
    The utf8only property. Choices: yes,no.

volblocksize
    The volblocksize property.

volsize
    The volsize property.

vscan
    The vscan property. Choices: yes,no.

xattr
    The xattr property. Choices: yes,no.

zoned
    The zoned property. Choices: yes,no.."

EXAMPLES

Create a new file system called myfs in pool rpool
zfs name=rpool/myfs state=present

Create a new volume called myvol in pool rpool.
zfs name=rpool/myvol state=present volsize=10M

Create a snapshot of rpool/myfs file system.
zfs name=rpool/myfs@mysnapshot state=present

Create a new file system called myfs2 with snapdir enabled
zfs name=rpool/myfs2 state=present snapdir=enabled
None

AUTHOR
Johan Wiren

SEE ALSO
ansible(1), http://ansible.github.com/modules.html#zfs