Added role boot to configure GRUB / Plymouth
parent
9e753299b2
commit
65e59c65a2
@ -0,0 +1,7 @@
|
||||
---
|
||||
|
||||
# system_name: "Example System"
|
||||
|
||||
plymouth_theme_pack: internal # internal does prevent download
|
||||
plymouth_theme: spinner
|
||||
plymouth_theme_url: "https://github.com/adi1090x/files/raw/master/plymouth-themes/themes/{{ plymouth_theme_pack }}/{{ plymouth_theme }}.tar.gz"
|
@ -0,0 +1,7 @@
|
||||
---
|
||||
|
||||
- name: update-grub
|
||||
command: /usr/sbin/update-grub
|
||||
|
||||
- name: rebuild initrd
|
||||
command: /usr/sbin/update-initramfs -u
|
@ -0,0 +1,3 @@
|
||||
---
|
||||
|
||||
allow_duplicates: no
|
@ -0,0 +1,39 @@
|
||||
---
|
||||
|
||||
- name: Install required packages
|
||||
apt:
|
||||
state: present
|
||||
name:
|
||||
- plymouth # Bootup Splash
|
||||
- plymouth-themes # Bootup Splash Theme
|
||||
|
||||
- name: Configure GRUB
|
||||
template:
|
||||
src: default_grub.txt
|
||||
dest: /etc/default/grub
|
||||
owner: root
|
||||
group: root
|
||||
mode: u=rw,g=r,o=r
|
||||
notify:
|
||||
- update-grub
|
||||
|
||||
- name: Download plymouth theme
|
||||
unarchive:
|
||||
src: "{{ plymouth_theme_url }}"
|
||||
dest: "{{ global_plymouth_themes_directory }}"
|
||||
remote_src: yes
|
||||
owner: root
|
||||
group: root
|
||||
mode: u=rwX,g=rX,o=rX
|
||||
creates: "{{ global_plymouth_themes_directory }}/{{ plymouth_theme }}"
|
||||
when: plymouth_theme_pack != 'internal'
|
||||
|
||||
- name: Configure Plymouth
|
||||
template:
|
||||
src: plymouthd.conf
|
||||
dest: /etc/plymouth/plymouthd.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: u=rw,g=r,o=r
|
||||
notify:
|
||||
- rebuild initrd
|
@ -0,0 +1,2 @@
|
||||
[Daemon]
|
||||
Theme={{ plymouth_theme }}
|
@ -1,2 +0,0 @@
|
||||
[Daemon]
|
||||
Theme=spinner
|
Loading…
Reference in New Issue