mirror of
https://github.com/geerlingguy/ansible-role-nfs
synced 2025-01-08 08:20:21 +01:00
Tweaks to fix NFS setup and handler.
This commit is contained in:
parent
8dbcd26feb
commit
8977a445bf
2 changed files with 3 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
||||||
---
|
---
|
||||||
- name: restart nfs
|
- name: restart nfs
|
||||||
service: "name={{ nfs_server_daemon }} state=restarted"
|
service: "name={{ nfs_server_daemon }} state=restarted"
|
||||||
|
when: nfs_exports|length
|
||||||
|
|
|
@ -19,8 +19,9 @@
|
||||||
when: ansible_os_family == 'Debian'
|
when: ansible_os_family == 'Debian'
|
||||||
|
|
||||||
- name: Ensure directories to export exist
|
- name: Ensure directories to export exist
|
||||||
file: path="{{ item.strip().split()[0] }}" state=directory
|
file: 'path="{{ item.strip().split()[0] }}" state=directory'
|
||||||
with_items: nfs_exports
|
with_items: nfs_exports
|
||||||
|
notify: restart nfs
|
||||||
|
|
||||||
- name: Copy exports file.
|
- name: Copy exports file.
|
||||||
template:
|
template:
|
||||||
|
|
Loading…
Reference in a new issue