Author: | Seth Vidal |
---|
parameter | required | default | choices | comments |
---|---|---|---|---|
dump | no | dump (see fstab(8)) | ||
fstype | yes | file-system type | ||
name | yes | path to the mount point, eg: /mnt/files |
||
opts | no | mount options (see fstab(8)) | ||
passno | no | passno (see fstab(8)) | ||
src | yes | device to be mounted on name. | ||
state | yes |
|
If mounted or unmounted , the device will be actively mounted or unmounted as well as just configured in fstab. absent and present only deal with fstab. mounted will also automatically create the mount point directory if it doesn't exist. If absent changes anything, it will remove the mount point directory. |
# Mount DVD read-only
- mount: name=/mnt/dvd src=/dev/sr0 fstype=iso9660 opts=ro state=present
# Mount up device by label
- mount: name=/srv/disk src='LABEL=SOME_LABEL' state=present
# Mount up device by UUID
- mount: name=/home src='UUID=b3e48f45-f933-4c8e-a700-22a159ec9077' opts=noatime state=present