Skip to content

Commit

Permalink
home-desktop: Enable grub menu with 5 second timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaupin committed Feb 3, 2022
1 parent 05345ce commit 0a9f24f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions roles/home-desktop/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,18 @@
become: yes
notify: Update grub
tags: [home-desktop]

# This allows us to boot to an older kernel if the rtl8812bu kernel module isn't working
- name: Enable grub menu with 5 second timeout
lineinfile:
path: /etc/default/grub
regexp: '{{ item.regexp }}'
line: '{{ item.line }}'
loop:
# Default value is hidden
- { regexp: '^GRUB_TIMEOUT_STYLE', line: 'GRUB_TIMEOUT_STYLE=menu' }
# Default value is 0
- { regexp: '^GRUB_TIMEOUT', line: 'GRUB_TIMEOUT=5' }
become: yes
notify: Update grub
tags: [home-desktop]

0 comments on commit 0a9f24f

Please sign in to comment.