🚀: new NAS

This commit is contained in:
VC
2024-10-26 10:07:10 +02:00
parent ca6a0cbb9e
commit 21be1afeac
21 changed files with 143 additions and 43 deletions

21
roles/nfs/tasks/main.yml Normal file
View File

@@ -0,0 +1,21 @@
---
- name: Install NFS
ansible.builtin.package:
name: nfs-kernel-server
state: present
- name: Export FS
ansible.builtin.template:
src: exports.j2
dest: /etc/exports
owner: root
group: root
mode: "0o640"
notify: Restart NFS
- name: Ensure NFSis started & enabled
ansible.builtin.service:
name: nfs-server
state: started
enabled: true