summaryrefslogtreecommitdiff
path: root/roles/vm-grub/tasks/main.yaml
blob: 2bb09811b8d1b59042190d4ba4df6d410cf4620b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
---
- name: disable recovery mode
  lineinfile: dest=/etc/default/grub regexp={{ item.regexp }} line={{ item.line }}
  with_items:
    - { 'regexp': '^GRUB_TIMEOUT=', 'line': 'GRUB_TIMEOUT=2' }
    - { 'regexp': '^GRUB_CMDLINE_LINUX=', 'line': 'GRUB_CMDLINE_LINUX="console=ttyS0,115200n8"' }
    - { 'regexp': '^GRUB_TERMINAL=', 'line': 'GRUB_TERMINAL=serial' }
    - { 'regexp': '^GRUB_SERIAL_COMMAND=', 'line': 'GRUB_SERIAL_COMMAND="serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1"' }
  notify: update grub