setup docker hosts to mount glusterfs mounts

move git.xai-corp.net to dkhost02
This commit is contained in:
2017-05-26 09:10:07 -04:00
parent 3866d4c17b
commit 165e5ffe54
9 changed files with 110 additions and 5 deletions

View File

@@ -0,0 +1,17 @@
---
- name: create mount points
file:
path: "{{ item.value.mount }}"
state: directory
mode: 0755
with_dict: gluster
- name: create glusterfs mount hosts file entries
lineinfile:
state: present
dest: /etc/fstab
insertafter: EOF
regexp: '^#?{{ item.value.host }}'
line: '{{ item.value.host }} {{ item.value.mount }} glusterfs defaults,_netdev 0 0'
with_dict: gluster