Browse Source

Merge pull request #9322 from mgugino-upstream-stage/gluster-fedora

Fedora: Install kernel-modules
Vadim Rutkovsky 6 years ago
parent
commit
52bd3706a8
1 changed files with 4 additions and 0 deletions
  1. 4 0
      roles/openshift_storage_glusterfs/tasks/kernel_modules.yml

+ 4 - 0
roles/openshift_storage_glusterfs/tasks/kernel_modules.yml

@@ -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