jtprogru.systemd_mounts
jtprogru.systemd_mounts
Konfiguracja montowania jako usługa Systemd. Możesz używać montowań jako usługi systemowej.
Zmienne Roli
Zobacz defaults/main.yml
.
Przykładowy Playbook
Ten Playbook tworzy usługę Systemd do montowania udziałów. Przykładowy playbook:
- hosts: all
roles:
- role: jtprogru.systemd_mounts
mounts:
myLogDir: # opis usługi
share: //logserver.local/logs$ # Udział do zamontowania
mount: /mnt/logs # Folder, w którym ma być zamontowane
type: cifs # typ montażu (zobacz stronę pomocy do polecenia mount)
options: domain=local,username=user,password=password,uid=1000,gid=1000 # Opcje, nazwa użytkownika...
automount: true # Jeśli false: usługa zamontuje przy starcie
# jeśli true: montuj przy dostępie do folderu i przy starcie
Appdir:
share: //apps.local/apps$
mount: /opt/app
type: nfs
options: uid=1000
automount: false
Autorzy
Licencja
Zobacz LICENSE
O projekcie
This is sample ansible role used me as boilerplate
Zainstaluj
ansible-galaxy install jtprogru.systemd_mounts
Licencja
wtfpl
Pobrania
229
Właściciel
#sre #devops #linux #ansible #terraform #python #golang #jtprogru #jtprog #macOS