ypsman.systemd_mounts

systemd-Mounts

Build-Status

Richten Sie Mounts als Systemd-Dienst ein.

Dieses Playbook erstellt einen Systemd-Dienst zum Einbinden von Freigaben.

So können Sie Mounts als Systemdienst verwenden.

Funktioniert für Debian Stretch und Jessie, wenn Sie Systemd verwenden.

Zum Beispiel:

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

Optionen:

Appdir:                           # Beschreibung des Dienstes
share: //apps.local/apps$         # Freigabe, die eingebunden werden soll
mount: /opt/app                   # Ordner, in den eingebunden werden soll
type: nfs                         # Mount-Typ (siehe die man-Seite zu mount)
options: uid=1000                 # Optionen, Benutzername...
automount: false                  # Wenn false: der Dienst wird beim Booten eingebunden
                                  # wenn true: Einbindung erfolgt beim Zugriff auf den Ordner und beim Booten

Beispiel-Playbook

- 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
Über das Projekt

Setup mounts and automount as Systemd service

Installieren
ansible-galaxy install ypsman.systemd_mounts
GitHub Repository
Lizenz
Unknown
Downloads
634
Besitzer