Mohitsharma44.nfs-client
役割名
NFSサーバーをマウントするためのNFSクライアント役割
要件
この設定をテストするには、次のオプションで
/var/nfs/general
をエクスポートしたNFSサーバーが必要です:/var/nfs/general *(rw,insecure,no_subtree_check,no_root_squash)
役割変数
nfs_shares
: 以下の変数を持つ辞書のリスト:
mnt_path
: NFS共有をローカルにマウントする場所remote_path
: リモートNFS共有パスnfs_mount_opts
: カンマ区切りのNFSマウントオプション
依存関係
nfs-common
この役割によってインストールされます
例のプレイブック
- hosts: localhost
connection: local
gather_facts: no
become: yes
vars:
nfs_shares:
- mnt_path: /media/test_export
remote_path: 10.8.10.67:/var/nfs/general
nfs_mount_opts: auto,nofail,ro,noatime,nolock,intr,tcp,actimeo=1800
ライセンス
MIT
著者情報
モヒト・シャルマ (Mohitsharma44@gmail.com)