39 lines
1 KiB
YAML
39 lines
1 KiB
YAML
---
|
|
- fail:
|
|
when: ansible_distribution != 'Archlinux'
|
|
|
|
- name: Install grub-theme-vimix (Archlinux)
|
|
become: true
|
|
pacman:
|
|
name:
|
|
- grub-theme-vimix
|
|
when: ansible_distribution == 'Archlinux'
|
|
|
|
- name: Set confs for grub
|
|
become: true
|
|
notify: Generate grub config
|
|
block:
|
|
- name: Set GRUB_DEFAULT to saved
|
|
replace:
|
|
path: /etc/default/grub
|
|
regexp: '^#?GRUB_DEFAULT.+'
|
|
replace: 'GRUB_DEFAULT=saved'
|
|
backup: true
|
|
- name: Set GRUB_THEME to Vimix
|
|
replace:
|
|
path: /etc/default/grub
|
|
regexp: '^#?GRUB_THEME.+'
|
|
replace: 'GRUB_THEME="/usr/share/grub/themes/Vimix/theme.txt"'
|
|
backup: true
|
|
- name: Set GRUB_SAVEDEFAULT to true
|
|
replace:
|
|
path: /etc/default/grub
|
|
regexp: '^#?GRUB_SAVEDEFAULT.+'
|
|
replace: 'GRUB_SAVEDEFAULT=true'
|
|
backup: true
|
|
- name: Disable grub submenu
|
|
replace:
|
|
path: /etc/default/grub
|
|
regexp: '^#?GRUB_DISABLE_SUBMENU.+'
|
|
replace: 'GRUB_DISABLE_SUBMENU=y'
|
|
backup: true
|