Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nosmoht/ansible-role-nfs-server
Ansible role to install and configure NFS Server on RHEL based systems
https://github.com/nosmoht/ansible-role-nfs-server
Last synced: 21 days ago
JSON representation
Ansible role to install and configure NFS Server on RHEL based systems
- Host: GitHub
- URL: https://github.com/nosmoht/ansible-role-nfs-server
- Owner: Nosmoht
- Created: 2015-11-10T07:02:47.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-12T06:53:00.000Z (about 9 years ago)
- Last Synced: 2023-12-16T19:23:22.372Z (11 months ago)
- Size: 0 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
nfs-server
==========
- [Introduction](#introduction)
- [Requirements](#requirements)
- [Variables](#variables)
- [Usage](#usage)
- [Author](#author)# Introduction
Ansible role to install and configure NFS server.
# Requirements
Ansible
# Variables
| Name | Description | Default |
|:-----|:------------|:--------|
| nfs_server_package_name | Package name | nfs-utils |
| nfs_server_package_state | Package state | present |
| nfs_server_service_names | Service names | depends on __ansible_os_family__ and __ansible_distribution_major_version__ |
| nfs_server_service_state | Service state | running |
| nfs_server_service_enabled | Service enabled | true |
| nfs_server_exports | List of dictionaries describing NFS exports | [] |# Usage
Some tasks of the role require root privileges. Therefore become must be used
with either sudo or su.```yaml
---
- hosts: server
become: true
become_method: sudo
become_user: root
vars:
nfs_server_exports:
- export: /mnt/nfs-share
hosts:
- name: 192.168.0.0/24
options: ro
- name: 192.168.1.0/24
options: rw
roles:
- role: nfs-server
```# Author
[Thomas Krahn](mailto:[email protected])