For VM - Match on grub if elevator=noop is present or not
name: OPITMIZ | GRUB | Set DISK Scheduler a elevator=noop
lineinfile:
dest: /etc/default/grub
regexp: '^(GRUB_CMDLINE_LINUX_DEFAULT=(?!.elevator=noop).)\"'
line: '\1 elevator=noop"'
backrefs: yes...
Submitted by Pintax - 8 years ago