0
0
vps-set-up-playbook/roles/nfs/tasks/main.yml
2023-11-11 02:06:42 +08:00

23 lines
394 B
YAML

- name: Install NFS
apt:
name:
- nfs-kernel-server
state: latest
install_recommends: false
- name: Copy NFS Config
template:
src: "exports.j2"
dest: "/etc/exports"
mode: '0644'
owner: root
group: root
- name: Exportfs
command: exportfs -a
ignore_errors: yes
- name: Restart NFS service
systemd:
name: nfs-kernel-server
state: restarted