Browse Source

Merge pull request #9515 from mgugino-upstream-stage/no-atomic-dnf

Ensure kernel-modules not installed on atomic
Michael Gugino 6 years ago
parent
commit
61cfcc75bd
1 changed files with 3 additions and 1 deletions
  1. 3 1
      roles/openshift_storage_glusterfs/tasks/kernel_modules.yml

+ 3 - 1
roles/openshift_storage_glusterfs/tasks/kernel_modules.yml

@@ -7,7 +7,9 @@
 
 - name: Install kernel modules package on Fedora
   shell: "dnf install kernel-modules-$(uname -r) -y"
-  when: ansible_distribution == "Fedora"
+  when:
+  - ansible_distribution == "Fedora"
+  - not (openshift_is_atomic | bool)
 
 - name: load kernel modules
   systemd: