cmprescott.autofs
Ansible Rolle: autofs
Installiert und konfiguriert autofs.
Voraussetzungen
# Ansible Version 1.4.4+
ansible --version
# Betriebssystem
case $OSTYPE in
# Linux benötigt apt|yum|dnf|zypper
"linux"*)
apt --version||yum --version||dnf --version||zypper --version;;
# OS X benötigt nichts
"darwin"*)
echo autofs ist OOB;;
esac
Rollenvariablen
# --- autofs Konfiguration ---
autofs_indirect_maps:
- name: autofs.nfs
path: /mnt/nfs
mark: "eindeutiger Identifikator für Idempotenz"
options: "--timeout=30 --ghost"
mounts:
- name: "isos"
fstype: "nfs,rw,bg,hard,intr,tcp,resvport"
url: "nfs.server.com:/data/isos"
# --- Betriebssystemeinrichtung ---
# Sollte nicht geändert werden müssen
autofs_pkgs:
Linux: [ 'autofs' ]
Darwin: []
# --- Betriebssystemkonfiguration ---
# Sollte nicht geändert werden müssen
autofs_master:
Linux: "/etc/auto.master"
Darwin: "/etc/auto_master"
Abhängigkeiten
Keine.
Beispiel-Playbook
- name: "Media Client"
hosts: clients.media
roles:
- name: "Media Client | NFS | Automounts sicherstellen"
become: true
become_method: sudo
role: cmprescott.autofs
autofs_indirect_maps:
- name: "auto.nfs-nas"
path: "/mnt/nfs"
mark: "NFS-Mounts vom NAS"
options: "--timeout=30 --ghost"
mounts:
- name: "filme"
fstype: "nfs,rw,bg,hard,intr,tcp,resvport"
url: "nfs.server.com:/data/movies"
- name: "tv"
fstype: "nfs,rw,bg,hard,intr,tcp,resvport"
url: "nfs.server.com:/data/tv"
- name: "auto.nfs-other"
path: "/-"
mark: "NFS-Mount mit Root-Basis"
options: "--timeout=30 --ghost"
mounts:
- name: "/var/remotedir"
fstype: "nfs,rw,bg,hard,intr,tcp,resvport"
url: "nfs.server.com:/data/remotedir"
Lizenz
BSD
Autoreninformation
Prescott Chris
Über das Projekt
Installs and configures autofs.
Installieren
ansible-galaxy install cmprescott.autofs
Lizenz
Unknown
Downloads
21.6k
Besitzer