{"id":18363454,"url":"https://github.com/stuttgart-things/install-configure-nfs","last_synced_at":"2025-04-10T06:49:39.091Z","repository":{"id":192061219,"uuid":"612232076","full_name":"stuttgart-things/install-configure-nfs","owner":"stuttgart-things","description":"manage a nfs client and server","archived":false,"fork":false,"pushed_at":"2023-09-01T13:26:14.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-15T19:38:31.694Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stuttgart-things.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-03-10T13:38:43.000Z","updated_at":"2023-06-19T13:27:21.000Z","dependencies_parsed_at":"2023-09-02T10:39:36.097Z","dependency_job_id":null,"html_url":"https://github.com/stuttgart-things/install-configure-nfs","commit_stats":null,"previous_names":["stuttgart-things/install-configure-nfs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Finstall-configure-nfs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Finstall-configure-nfs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Finstall-configure-nfs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Finstall-configure-nfs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stuttgart-things","download_url":"https://codeload.github.com/stuttgart-things/install-configure-nfs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248173850,"owners_count":21059595,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T23:06:36.830Z","updated_at":"2025-04-10T06:49:39.060Z","avatar_url":"https://github.com/stuttgart-things.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stuttgart-things/install-configure-nfs\nThis ansible role can set up an NFS server or a client. It can automatically create nfs mounts for clients and also install and configure a server. \n\n## Example playbooks to use this role\n\n\u003cdetails\u003e\u003csummary\u003eInstall this role on your ansible host\u003c/summary\u003e\n\n```\ncat \u003c\u003cEOF \u003e /tmp/requirements.yaml\nroles:\n- src: git@codehub.sva.de:Lab/stuttgart-things/supporting-roles/install-requirements.git\n  scm: git\n- src: git@codehub.sva.de:Lab/stuttgart-things/supporting-roles/install-configure-nfs.git \n  scm: git\n- src: git@codehub.sva.de:Lab/stuttgart-things/supporting-roles/download-install-binary\n  scm: git\ncollections:\n- name: community.general\n  version: 6.3.0\n- name: ansible.posix\n  version: 1.5.1\nEOF\nansible-galaxy install -r /tmp/requirements.yaml --force\n```\n\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\u003csummary\u003eExample playbook for an nfs client installation with mount on a netapp\u003c/summary\u003e\n\n```\n- hosts: all\n  gather_facts: true\n  become: true\n  vars:\n    kind: client\n\n    nfs_mnt:\n      - name: archive\n        permanent: true #false makes no fstab entry\n        need_nfs_subfolder: false\n        remote_uri: smt-final-2.labul.sva.de:/archive\n        mount_dir: /archive\n        permissions: 777\n\n  roles:\n    - install-configure-nfs\n```\n\n**Note: This role requires become yes**\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eExample playbook for an nfs server installation with export configuration\u003c/summary\u003e\n\n```\n- hosts: \"nfs\"\n  gather_facts: true\n  become: true\n  vars:\n    kind: server\n    permanent: true\n    nfs_manage_firewall: true\n    #nfs_custom_exports:  #optional use this or nfs_export_path\n    #  - / *(ro,fsid=0) #You can specify more mounts at one time\n    #  - /var/lib/docker *(rw,sync,nohide)\n    nfs_export_path:      #optional use this or nfs_custom_exports\n      - /srv/nfs\n\n  roles:\n    - install-configure-nfs\n```\n**Note: This role requires become yes**\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eExample inventory\u003c/summary\u003e\n\n```\n[nfs]\nfoo.bar.example.com ansible_user=foobar\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eExecute playbook\u003c/summary\u003e\n\n```\nansible-playbook -i inventory install-configure-nfs.yml\n```\n\u003c/details\u003e\n\n\n\n\n## Role TODOs\n\n\n\n## Variables\n\nThis role need variables\n\n1. NFS Server\n    - kind: (client / server) Client or server installation \n    - permanent: (true [default] / false) save changes after reboot\n    - nfs_manage_firewall: (true [default] / false)\n    - nfs_exports: (string) exportfs entry\n    - remote_uri: \n\n2. NFS Client\n    - kind: (client / server) Client or server installation\n    - permanent: (true [default] / false) save changes after reboot\n    - remote_uri: (string) nfs uri\n    - mount_dir: (string) path for mount nfs\n    \n## Requirements and Dependencies:\nServer and client:\n- Ubuntu 20.04\n- Ubuntu 18.04\n- CentOS 8\n- CentOS 7\n\nRole history\n----------------\n| date  | who | changelog |\n|---|---|---|\n|2021-28-10  | Marcel Zapf | add NetApp support, added dict in mount creation logic, added support for creating nfs subdirs\n|2021-28-02  | Patrick Hermann | updated role structure, doc and requirements\n|2020-07-07  | Marcel Zapf | intial commit for this role\n\nLicense\n-------\n\nBSD\n\nAuthor Information\n------------------\n\nMarcel Zapf; 08/2020; SVA GmbH\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuttgart-things%2Finstall-configure-nfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstuttgart-things%2Finstall-configure-nfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuttgart-things%2Finstall-configure-nfs/lists"}