j1ngk3.nfs
Rol de Ansible: NFS
Instalar servidor/cliente NFS.
Requisitos
Ninguno.
Variables del Rol
Las variables que se pueden pasar a este rol y una breve descripción de ellas son las siguientes.
# Modo de instalación de NFS: servidor o cliente
nfs_mode: server
# Línea para agregar al archivo /etc/exports
nfs_exports:
- path: "/home"
export: "vnode*.localdomain(fsid=0,rw,async,no_root_squash,no_subtree_check,insecure)"
# Línea para agregar al archivo /etc/fstab
nfs_client_imports:
- local: "/home"
remote: "/home"
server_host: "{{hostvars['server']['ansible_default_ipv4']}}"
Las importaciones del cliente NFS también pueden definir las siguientes variables:
state
: ver: http://docs.ansible.com/ansible/mount_module.html para más información.opts
: ver https://wiki.debian.org/fr/fstab para más información.dump
: ver https://wiki.debian.org/fr/fstab para más información.passno
: ver https://wiki.debian.org/fr/fstab para más información.
Dependencias
Ninguna.
Ejemplo de Playbook
Este es un ejemplo de cómo instalar y configurar un servidor y cliente NFS:
- hosts: server
roles:
- { role: 'j1ngk3.nfs', nfs_mode: 'server', nfs_exports: [{path: "/home", export: "vnode*.localdomain(fsid=0,rw,async,no_root_squash,no_subtree_check,insecure)"}] }
- hosts: client
roles:
- { role: 'j1ngk3.nfs', nfs_mode: 'client', nfs_client_imports: [{ local: "/home", remote: "/home", server_host: "{{hostvars['server']['ansible_default_ipv4']}}" }] }
Licencia
Licencia Apache v2 [1]
Instalar
ansible-galaxy install j1ngk3.nfs
Licencia
Unknown
Descargas
250
Propietario