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)

プロジェクトについて

Ansible role for mounting nfs shares on clients

インストール
ansible-galaxy install Mohitsharma44.nfs-client
ライセンス
mit
ダウンロード
598
所有者
Researcher, Tinkerer and a Developer evangelist