NFS: one file for each export.
This commit is contained in:
parent
4eabd100dd
commit
94c1382dca
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue