jtprogru.systemd_mounts

jtprogru.systemd_mounts

Ansible Molecule Release to Ansible Galaxy TODO 2 Issue GitHub Ansible Role GitHub tag

This role sets up mounts as a systemd service, allowing you to use mounts as system services.

Role Variables

Check the defaults/main.yml file for variable details.

Example Playbook

This playbook creates a systemd service to mount shares. Here’s a sample playbook:

    - hosts: all
      roles:
        - role: jtprogru.systemd_mounts
          mounts:
            myLogDir: # description of the Service
              share: //logserver.local/logs$ # The share to mount from
              mount: /mnt/logs  # The folder to mount it in
              type: cifs # The type of mount (see mount man page)
              options: domain=local,username=user,password=password,uid=1000,gid=1000 # Options for the mount
              automount: true  # If false: mounts at boot; if true: mounts on access and at boot
            Appdir:
              share: //apps.local/apps$
              mount: /opt/app
              type: nfs
              options: uid=1000
              automount: false

Authors

License

Refer to the LICENSE file for license information.

Informazioni sul progetto

This is sample ansible role used me as boilerplate

Installa
ansible-galaxy install jtprogru.systemd_mounts
Licenza
wtfpl
Download
229
Proprietario
#sre #devops #linux #ansible #terraform #python #golang #jtprogru #jtprog #macOS