1 2 3 4 5 6 7 8 9 10 11 12
--- - name: Ensure device mapper modules loaded template: src: glusterfs.conf 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