0
0
vps-set-up-playbook/roles/nfs-opnxng/tasks/main.yaml

23 lines
394 B
YAML
Raw Normal View History

2023-11-11 02:06:42 +08:00
- 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