diff --git a/roles/docker-cluster/tasks/gluster.yml b/roles/docker-cluster/tasks/gluster.yml new file mode 100644 index 0000000..a808878 --- /dev/null +++ b/roles/docker-cluster/tasks/gluster.yml @@ -0,0 +1,15 @@ +--- +- become: yes + block: + - name: install glusterfs-client + apt: + update_cache: yes + pkg: + - glusterfs-client + + - name: add mount for glusterfs data + mount: + path: /srv + src: 192.168.50.100:/gv0 + fstype: glusterfs + state: present \ No newline at end of file diff --git a/roles/docker-cluster/tasks/main.yml b/roles/docker-cluster/tasks/main.yml index c6b7e4b..d6077e6 100644 --- a/roles/docker-cluster/tasks/main.yml +++ b/roles/docker-cluster/tasks/main.yml @@ -7,6 +7,8 @@ - import_tasks: nfs-client.yml +- import_tasks: gluster.yml + - import_tasks: hearthbeat.yml - import_tasks: hostfile.yml