setup docker hosts to mount glusterfs mounts
move git.xai-corp.net to dkhost02
This commit is contained in:
17
roles/dockerhost/tasks/fstab.yml
Normal file
17
roles/dockerhost/tasks/fstab.yml
Normal 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
|
||||
Reference in New Issue
Block a user