Sha256: 67223f41cdd64391a780f4bc954f82de2ba1e484780f949ef0fcfde81a714c6b

Contents?: true

Size: 642 Bytes

Versions: 1

Compression:

Stored size: 642 Bytes

Contents

---
- hosts: all
  become: yes
  tasks:
    - name: install nfs server
      apt:
        name: nfs-kernel-server
        state: present

    - name: create export folder
      file:
        path: /srv/nfs
        state: directory
        mode: 0755

    - name: start nfs service
      service:
        name: nfs-kernel-server
        state: started
        enabled: yes

    - name: add entry to exports file
      lineinfile:
        dest: /etc/exports
        line: "/srv/nfs 192.168.123.0/24(rw,sync,no_root_squash,no_subtree_check)"

    - name: reload nfs service
      service:
        name: nfs-kernel-server
        state: reloaded

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rancher-api-beta-0.8.1 vagrant-rancher/ansible/nfs-server.yml