Necessary module for gluster is not installed by default in fedora. This commit ensures the proper package is installed.
@@ -5,6 +5,10 @@
dest: /etc/modules-load.d/glusterfs.conf
register: km
+- name: Install kernel modules package on Fedora
+ shell: "dnf install kernel-modules-$(uname -r) -y"
+ when: ansible_distribution == "Fedora"
+
- name: load kernel modules
systemd:
name: systemd-modules-load.service