kernel_modules.yml 266 B

123456789101112
  1. ---
  2. - name: Ensure device mapper modules loaded
  3. template:
  4. src: glusterfs.conf
  5. dest: /etc/modules-load.d/glusterfs.conf
  6. register: km
  7. - name: load kernel modules
  8. systemd:
  9. name: systemd-modules-load.service
  10. state: restarted
  11. when: km is changed