ypsman.systemd_mounts
systemd montajes
Configuración de montajes como Servicio de systemd.
Este Playbook crea un servicio de Systemd para montar comparticiones.
Así puedes usar los montajes como servicio del sistema.
Funciona en Debian Stretch y Jessie si usas systemd.
Por ejemplo:
systemctl status mount-point.mount
systemctl start mount-point.mount
systemctl stop mount-point.mount
Opciones:
Appdir: # descripción del Servicio
share: //apps.local/apps$ # Compartición a montar
mount: /opt/app # Carpeta donde montar
type: nfs # tipo de montaje (mira la página del manual de mount)
options: uid=1000 # Opciones, nombre de usuario...
automount: false # Si es falso: el servicio se montará al iniciar
# si es verdadero: se monta al acceder a la carpeta y al iniciar
Ejemplo de 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
Acerca del proyecto
Setup mounts and automount as Systemd service
Instalar
ansible-galaxy install ypsman.systemd_mounts
Licencia
Unknown
Descargas
634
Propietario