kernel_modules.yml 454 B

123456789101112131415161718
  1. ---
  2. - name: Ensure device mapper modules loaded
  3. template:
  4. src: glusterfs.conf.j2
  5. dest: /etc/modules-load.d/glusterfs.conf
  6. register: km
  7. - name: Install kernel modules package on Fedora
  8. shell: "dnf install kernel-modules-$(uname -r) -y"
  9. when:
  10. - ansible_distribution == "Fedora"
  11. - not (openshift_is_atomic | bool)
  12. - name: load kernel modules
  13. systemd:
  14. name: systemd-modules-load.service
  15. state: restarted
  16. when: km is changed