cmprescott.autofs

Ansibleロール:autofs

ビルドステータス

autofsをインストールして設定します。

要件

# Ansibleのバージョン 1.4.4+
ansible --version

# OS
case $OSTYPE in
  # Linuxはapt|yum|dnf|zypperが必要
  "linux"*)
      apt --version||yum --version||dnf --version||zypper --version;;
  # OS Xは特に何も必要ありません
  "darwin"*)
      echo autofsは即時使用可能です;;
esac

ロール変数

# --- autofs設定 ---
autofs_indirect_maps:
  - name: autofs.nfs
    path: /mnt/nfs
    mark: "冪等性のためのユニーク識別子"
    options: "--timeout=30 --ghost"
    mounts:
      - name: "isos"
        fstype: "nfs,rw,bg,hard,intr,tcp,resvport"
        url: "nfs.server.com:/data/isos"

# --- OS設定 ---
# 修正する必要はありません
autofs_pkgs:
  Linux: [ 'autofs' ]
  Darwin: []

# --- OS構成 ---
# 修正する必要はありません
autofs_master:
  Linux: "/etc/auto.master"
  Darwin: "/etc/auto_master"

依存関係

なし。

サンプルプレイブック

- name: "メディアクライアント"
  hosts: clients.media
  roles:
    - name: "メディアクライアント | NFS | 自動マウントを確保"
      become: true
      become_method: sudo
      role: cmprescott.autofs
      autofs_indirect_maps:

        - name: "auto.nfs-nas"
          path: "/mnt/nfs"
          mark: "NASからのNFSマウント"
          options: "--timeout=30 --ghost"
          mounts:
            - name: "movies"
              fstype: "nfs,rw,bg,hard,intr,tcp,resvport"
              url: "nfs.server.com:/data/movies"
            - name: "tv"
              fstype: "nfs,rw,bg,hard,intr,tcp,resvport"
              url: "nfs.server.com:/data/tv"

        - name: "auto.nfs-other"
          path: "/-"
          mark: "ルートベースのNFSマウント"
          options: "--timeout=30 --ghost"
          mounts:
            - name: "/var/remotedir"
              fstype: "nfs,rw,bg,hard,intr,tcp,resvport"
              url: "nfs.server.com:/data/remotedir"

ライセンス

BSD

著者情報

プレズコット・クリス

プロジェクトについて

Installs and configures autofs.

インストール
ansible-galaxy install cmprescott.autofs
ライセンス
Unknown
ダウンロード
21.6k
所有者