- name: Configure udev hotplug rules copy: src: 80-hotplug-cpu-mem.rules dest: /usr/lib/udev/rules.d/ mode: u=rw,g=r,o=r owner: root group: root - name: Configure GRUB for hotplug copy: src: hotplug.cfg dest: /etc/default/grub.d/ mode: u=rw,g=r,o=r owner: root group: root register: grub - name: Generate GRUB configuration command: update-grub when: grub.changed