Coder Social home page Coder Social logo

ansible-role-nfs's Introduction

Role Name

Role to install nfs client and/or nfs server.

Requirements

None

Role Variables

Default variables

nfs_export_root: /exports
nfs_exports:
  - data
  - documents
nfs_export_opts:
  - rw
  - no_root_squash
  - no_subtree_check
  - crossmnt
  - fsid=0

Example of required user supplied variables

nfs_access_list:
  - 192.168.1.0/24
  - 2607:f8b0:4008:804::/64

The above variables result in the following /etc/exports file.

#
# Ansible managed
#
/exports -rw,no_root_squash,no_subtree_check,crossmnt,fsid=0 192.168.1.0/24 2607:f8b0:4008:804::/64

Dependencies

None

Example Playbook

  - hosts: servers
    vars:
      nfs_access_list:
        - 192.168.1.0/24
        - 2607:f8b0:4008:804::/64
    roles:
        - qs5779.nfs

License

MIT

Installation

I will not upload this role to ansible galaxy until I develop automated tests. To install the role from github, create a reqirements.yml file with the following contents:

---
# for examples see https://docs.ansible.com/ansible/latest/galaxy/user_guide.html#installing-multiple-roles-from-a-file
# from GitHub
- name: qs5779.nfs
  src: https://github.com/qs5779/ansible-role-nfs
  version: main
...

Then run:

ansible-galaxy install -r requirements.yml

Author Information

Quien Sabe https://www.quiensabe.org

ansible-role-nfs's People

Contributors

qs5779 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.