ypsman.systemd_mounts

systemd マウント

ビルドステータス

マウントを systemd サービスとして設定します。

このプレイブックは、共有フォルダをマウントするための systemd サービスを作成します。

これにより、マウントをシステムサービスとして利用できます。

Debian Stretch と Jessie で、systemd を使用している場合に対応しています。

例えば:

systemctl status mount-point.mount
systemctl start mount-point.mount
systemctl stop mount-point.mount

オプション:

Appdir:                           # サービスの説明
share: //apps.local/apps$         # マウントする共有フォルダ
mount: /opt/app                   # マウント先のフォルダ
type: nfs                         # マウントタイプ(mount のマニュアルページを参照)
options: uid=1000                 # オプション、ユーザー名など...
automount: false                  # false の場合: サービスはブート時にマウント
                                  # true の場合: フォルダへのアクセス時及びブート時にマウント

プレイブックの例

- hosts: all
  roles:
    - role: systemd-mounts
      mounts:
        myLogDir:
          share: //logserver.local/logs$
          mount: /mnt/logs
          type: cifs
          options: domain=local,username=user,password=password,uid=1000,gid=1000
          automount: true
        Appdir:
          share: //apps.local/apps$
          mount: /opt/app
          type: nfs
          options: uid=1000
          automount: false
プロジェクトについて

Setup mounts and automount as Systemd service

インストール
ansible-galaxy install ypsman.systemd_mounts
ライセンス
Unknown
ダウンロード
634
所有者