ypsman.systemd_cifs_mount

Ansible Systemd CIFS Mounts

Build Status

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.mount
    
  • Start the mount:

    systemctl start mount-point.mount
    
  • Stop the mount:

    systemctl stop mount-point.mount
    
  • Check the status of the automount:

    systemctl status mount-point.automount
    
  • Start the automount:

    systemctl start mount-point.automount
    
  • Stop 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_mount
Licenza
Unknown
Download
503
Proprietario