Tweaks to fix NFS setup and handler.

This commit is contained in:
Jeff Geerling 2016-03-11 10:43:51 -06:00
parent 8dbcd26feb
commit 8977a445bf
2 changed files with 3 additions and 1 deletions

View file

@ -1,3 +1,4 @@
---
- name: restart nfs
service: "name={{ nfs_server_daemon }} state=restarted"
when: nfs_exports|length

View file

@ -19,8 +19,9 @@
when: ansible_os_family == 'Debian'
- 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
notify: restart nfs
- name: Copy exports file.
template: