---
- name: Ensure device mapper modules loaded
  template:
    src: glusterfs.conf.j2
    dest: /etc/modules-load.d/glusterfs.conf
  register: km

- name: load kernel modules
  systemd:
    name: systemd-modules-load.service
    state: restarted
  when: km is changed
