Files
ansible/roles/nfs/tasks/main.yml

23 lines
412 B
YAML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
- name: Install NFS
ansible.builtin.package:
name: nfs-kernel-server
state: present
update_cache: true
- 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