Only try to mount the gluster dir if it doesn't already exist. Weird.
This commit is contained in:
parent
340455d65d
commit
63c04540e8
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue