From 39af684fb7c41379650f6b882e99277f7a033469 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Sun, 28 May 2023 00:25:10 +0200 Subject: [PATCH] Update docker cluster add glusterfs client --- roles/docker-cluster/tasks/gluster.yml | 15 +++++++++++++++ roles/docker-cluster/tasks/main.yml | 2 ++ 2 files changed, 17 insertions(+) create mode 100644 roles/docker-cluster/tasks/gluster.yml 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