systemd_mounts
jtprogru.systemd_mounts
Setup mounts as sysemd Service. So you can use mounts as system Servie.
Role Variables
See defaults/main.yml
.
Example Playbook
This Playbook creates a Systemd Service for mounting Shares. Example playbook:
- hosts: all
roles:
- role: jtprogru.systemd_mounts
mounts:
myLogDir: # description of the Service
share: //logserver.local/logs$ # Share to mount from
mount: /mnt/logs # Folder to mount in
type: cifs # mount type (look at mount man page)
options: domain=local,username=user,password=password,uid=1000,gid=1000 # Options, username...
automount: true # If false: the service will mount at boot
# if true: Mount when access on the Folder and on boot
Appdir:
share: //apps.local/apps$
mount: /opt/app
type: nfs
options: uid=1000
automount: false
Authors
License
See LICENSE
About
This is sample ansible role used me as boilerplate
Install
ansible-galaxy install jtprogru/ansible-role-systemd-mounts
License
wtfpl
Downloads
218
Owner
#sre #devops #linux #ansible #terraform #python #golang #jtprogru #jtprog #macOS