i got a couple of computers at home that are for personal use. they arent part of my lab. they are used for browsing and such. this means i dont need to see all those messages scroll by. so i decided to add a little colour to the boot up process.
this ansible task is meant to be run on a fedora 26 or higher system.
- name: Plymouth - Install Plymouth grub splash
dnf: name={{ item }} state=present
with_items:
- plymouth
- plymouth-theme-charge
- grub2-starfield-theme
- name: Plymouth - Set plymouth theme to charge
shell: plymouth-set-default-theme charge --rebuild-initrd
- name: Grub2 - Set theme
lineinfile: path=/etc/default/grub regexp='GRUB_THEME=' line='GRUB_THEME=/boot/grub2/themes/system/theme.txt' state=present
- name: Grub2 - Disable console
lineinfile: path=/etc/default/grub regexp='GRUB_TERMINAL_OUTPUT=console' state=absent
# for bios
- name: Grub2 - Rebuild grub
shell: grub2-mkconfig -o /boot/grub2/grub.cfg