manics.ansible_role_nfs_mount
NFSマウント
NFS4マウントを管理します。
役割の変数
nfs_share_mounts
: NFS共有の辞書のリスト:{ path: マウントポイント, mount: nfsサーバーパス, opts: マウントオプション (省略可) }
nfs_mount_opts
: デフォルトのNFS4マウントオプション
例のプレイブック
- hosts: localhost
roles:
- role: nfs-mount
nfs_share_mounts:
- path: /mnt/remote
location: nfs.example.org:/data
- path: /mnt/readonly
location: nfs.example.org:/read-only
opts: "{{ nfs_mount_opts }},ro"