Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Document #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
36 changes: 32 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,38 @@
# Ansible Role: NFS Server Repository


This Ansible Role will setup NFS Service
- Install NFS Package; check in `vars` folder
- Debian `nfs-common`, `nfs-kernel-server`
- RedHat `nfs-utils`
- Create `exports` file for NFS Share

## Requirements

None.
- Be sure to know basic of installing NFS on Linux and how NFS works

## Role Variables


- **REQUIRED** - `nfs_exportfs_configs`
```
nfs_exportfs_configs:
- client_ip: 10.33.48.0/16
path: /nfs
mount_options: "(rw)"
- client_ip: 10.33.48.0/16
path: /nfs2
mount_options: "(rw,sync,no_subtree_check)"
```
This will be transformed into `exports` config file
- Templeting from `templates/exports.j2`
```
/nfs 10.33.48.0/16(rw)
/nfs2 10.33.48.0/16(rw,sync,no_root_squash,no_subtree_check)
...
```

- Use Static Port for RPC
```
nfs_server_rpcmount_port: 33333
```

## Dependencies

Expand All @@ -20,6 +44,10 @@ None.
roles:
- opsta.nfs_server

## Ansible Molecules

To be documented.

## License

MIT
Expand Down
1 change: 0 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
# nfs_server_rpcmount_port: 33333
# nfs_exportfs_configs: []
# nfs_exportfs_configs:
# - client_ip: ip
# path: /nfs
Expand Down