- name: "set the correct grub options" lineinfile: state: present dest: /etc/default/grub backrefs: yes regexp: "^GRUB_CMDLINE_LINUX_DEFAULT" line: 'GRUB_CMDLINE_LINUX_DEFAULT="quiet splash mem_sleep_default=deep"' notify: "update grub"