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

View File

@@ -11,6 +11,9 @@
- "wget"
- "apt-transport-https"
- "ca-certificates"
- "glusterfs-client"
- xfsprogs
- attr
#- name: install repo keys
# apt_key:

View File

@@ -4,3 +4,5 @@
- include: "install-xenial.yml"
when: ansible_distribution_release == "xenial"
become: true
- include: "fstab.yml"