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
|
||||
@@ -11,6 +11,9 @@
|
||||
- "wget"
|
||||
- "apt-transport-https"
|
||||
- "ca-certificates"
|
||||
- "glusterfs-client"
|
||||
- xfsprogs
|
||||
- attr
|
||||
|
||||
#- name: install repo keys
|
||||
# apt_key:
|
||||
|
||||
@@ -4,3 +4,5 @@
|
||||
- include: "install-xenial.yml"
|
||||
when: ansible_distribution_release == "xenial"
|
||||
become: true
|
||||
|
||||
- include: "fstab.yml"
|
||||
|
||||
Reference in New Issue
Block a user