Skip to main content

NFS Role

This Ansible role can be used to configure NFS-shares.


Variables

VariablesTypeOptionsDefaults
nfs_service_name:list---nfs-server.service, rpcbind.service
nfs_service_state:stringreloaded, restarted, started, stoppedstarted
nfs_service_enabled:boolfalse, truetrue
nfs_package_state:stringpresent, absent, latestpresent
nfs_package:list---nfs-utils
nfs_exports:dict------
nfs_exports.path:string------
nfs_exports.host:string------
nfs_exports.options:string------
nfs_exports_file:string---/etc/exports
nfs_exports.user:string---{{ ansible_user }}
nfs_exports.group:string---{{ ansible_user }}
nfs_exports.permissions:string---0755
nfs_exports_state:stringpresent, absent, skippresent
nfs_firewalld_zone:stringblock, dmz, drop, internal, public, trusted...---
nfs_firewalld_service:string---nfs
nfs_firewalld_state:stringpresent, absent, enabled, disabled, skipenabled

Example Playbook

- name: Import nfs Role
hosts: all
roles:
- role: giftpilz0.server.nfs