blob: f8045e3cd5fd0b784fa5650120e3c68884d06104 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
- name: Install NFS
become: true
ansible.builtin.package:
name: nfs-server
state: present
- name: Enable & start NFS service
become: true
ansible.builtin.systemd_service:
name: nfs-server
enabled: true
state: started
- name: Collect required info
ansible.builtin.setup:
gather_subset: [user]
- name: Configure NFS
become: true
ansible.builtin.template:
src: exports.j2
dest: /etc/exports
owner: root
group: root
mode: '644'
notify: nfs_configured
|