Only try to mount the gluster dir if it doesn't already exist. Weird.

This commit is contained in:
Ralph Bean 2014-03-13 15:59:22 +00:00
parent 340455d65d
commit 63c04540e8

View file

@ -15,9 +15,14 @@
#notify:
#- remount? no idea...
- name: check if the mountdir directory already exists
file: path={{mountdir}} state=directory
register: result
- name: mount it up
mount: >
src=/etc/glusterfs/glusterfs.{{name}}.vol
state=mounted
fstype=glusterfs
name={{mountdir}}
when: result|changed