NFS: one file for each export.

This commit is contained in:
Andrea Dell'Amico 2022-06-13 12:16:28 +02:00
parent 4eabd100dd
commit 94c1382dca
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 10 additions and 2 deletions

View File

@ -45,13 +45,21 @@
- name: Manage the NFS exports
block:
- name: Install the NFS export file
- name: Create the NFS exports folder
file:
dest: '/etc/exports.d'
owner: root
group: root
mode: 0755
- name: Install the NFS export files
template:
src: 'kernel-nfs-exports.j2'
dest: '/etc/exports'
dest: '/etc/exports.d/{{ item.name }}'
owner: root
group: root
mode: 0644
loop: '{{ nfs_server_exports }}'
register: update_exportfs
- name: Ensure that the Kernel NFS service is started and enabled on EL