ypsman.systemd_cifs_mount
Ansible Systemd CIFS Mounts
This guide helps you set up CIFS mounts as a Systemd service.
What It Does
This Playbook creates a Systemd service that mounts CIFS shares, allowing you to use them like regular system services.
Compatible Systems
It works on Debian Stretch and Jessie when using Systemd.
How It Works
The Playbook can mount multiple folders from one server. For example, you can manage mounts with the following commands:
Check the status of the mount:
systemctl status mount-point.mountStart the mount:
systemctl start mount-point.mountStop the mount:
systemctl stop mount-point.mountCheck the status of the automount:
systemctl status mount-point.automountStart the automount:
systemctl start mount-point.automountStop the automount:
systemctl stop mount-point.automount
Options
- cifs_mount_share:
//apps.local/apps$-- This is the server you are mounting from. - cifs_mount_path:
/opt/app-- This is the location where the folder will be mounted. - cifs_mount_options:
uid=1000-- These are additional options, such as the username.
Example Playbook
Here's an example of what the Playbook looks like:
- hosts: all
roles:
- role: systemd-cifs-mounts
cifs_mounts:
- folder1
- folder2
This example indicates that folder1 and folder2 will be set up as mounts.
Informazioni sul progetto
Setup several cifs mounts and automount as Systemd service from one Server
Installa
ansible-galaxy install ypsman.systemd_cifs_mountLicenza
Unknown
Download
512
Proprietario
