apkawa.nfs

Ansible role: nfs

Build Status

Ansible role Ansible role downloads Ansible role quality

Ansible role for NFS client and/or NFS server

Requirements

None

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):


nfs_client: yes

nfs_client_mounts:
  - src: example.com:/export/
    mount_point: /mnt/example_nfs/
    # optional
    opts: rw,async
    deleted: false

# NFS server. disabled by default
nfs_server: no

nfs_server_shares:
  - path: /path/to/export
    # optional
    mount_from: /real_path/what/you/hide
    # default *
    allow:
      - 127.0.0.1
      - ip: 10.0.0.2
        # override for ip
        options:
          - ro
          - sync
      - ip: 10.0.0.4
        options: (rw,sync)
    # default
    options: (rw,sync)
    delete: no

Dependencies

None

Example Playbook

- hosts: all
  roles:
    - role: apkawa.nfs

License

MIT

Author Information

Apkawa

Contributing

  1. Install docker
  2. Install pipenv
  3. Initialize pipenv:
    pipenv install --dev
    
  4. Run tests
    pipenv run -- tox -e centos7
    
About

nfs client and nfs server

Install
ansible-galaxy install apkawa.nfs
GitHub repository
License
Unknown
Downloads
528
Owner