An Ansible Role that manages named mount points on POSIX systems.
None.
Available variables are listed below, along with default values (see defaults/main.yml
):
sspreitzer_mount_definitions: {}
sspreitzer_mount_definitions_common: {}
sspreitzer_mount_definitions_extra: {}
sspreitzer_mount_instances: {}
sspreitzer_mount_instances_common: {}
sspreitzer_mount_instances_extra: {}
Normal, *_common
and *_extra
variables will be merged (recursively).
This hash hash map defines named mount points with args of ansible.posix.mount
sspreitzer_mount_definitions:
nfsv1_01:
fstype: nfs
opts: soft,tcp,ro
path: /mnt/nfsv1_01
src: nfsv1:/01
state: mounted
tmpfs01:
fstype: tmpfs
path: /tmp/01
src: tmpfs
state: mounted
This hash map instantiates named mount points and allows overriding args of ansible.posix.mount
sspreitzer_mount_instances:
nfsv1_01:
opts: hard,rw
tmpfs01:
opts: size=500m
You can place *_common
vars in the group_vars
of the inventory. As well as *_extra
in the host_vars
of the inventory. The dicts will be merged (recursively).
None.
- hosts: all
roles:
- sspreitzer.mount
MIT
This role was created in 2021 by Sascha Spreitzer.