From 8c5bfc7718cb2bdcde018786ede8ab7e58534c61 Mon Sep 17 00:00:00 2001 From: Sascha Marcel Schmidt Date: Mon, 25 Jun 2018 13:37:58 +0200 Subject: [PATCH] add debian compatibility --- .../heketi/roles/prepare/tasks/main.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/contrib/network-storage/heketi/roles/prepare/tasks/main.yml b/contrib/network-storage/heketi/roles/prepare/tasks/main.yml index cb644364c..e4db23365 100644 --- a/contrib/network-storage/heketi/roles/prepare/tasks/main.yml +++ b/contrib/network-storage/heketi/roles/prepare/tasks/main.yml @@ -9,8 +9,16 @@ name: "{{ item }}" state: "present" -- name: "Install glusterfs mount utils" +- name: "Install glusterfs mount utils (RedHat)" become: true yum: name: "glusterfs-fuse" state: "present" + when: "ansible_os_family == 'RedHat'" + +- name: "Install glusterfs mount utils (Debian)" + become: true + apt: + name: "glusterfs-client" + state: "present" + when: "ansible_os_family == 'Debian'"