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:
|
#notify:
|
||||||
#- remount? no idea...
|
#- remount? no idea...
|
||||||
|
|
||||||
|
- name: check if the mountdir directory already exists
|
||||||
|
file: path={{mountdir}} state=directory
|
||||||
|
register: result
|
||||||
|
|
||||||
- name: mount it up
|
- name: mount it up
|
||||||
mount: >
|
mount: >
|
||||||
src=/etc/glusterfs/glusterfs.{{name}}.vol
|
src=/etc/glusterfs/glusterfs.{{name}}.vol
|
||||||
state=mounted
|
state=mounted
|
||||||
fstype=glusterfs
|
fstype=glusterfs
|
||||||
name={{mountdir}}
|
name={{mountdir}}
|
||||||
|
when: result|changed
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue