Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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])