Added role kiosk/boot
parent
1748d00f8c
commit
3f2392332d
@ -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,6 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
allow_duplicates: no
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
- role: misc/handlers
|
@ -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,30 @@
|
|||||||
|
# Configured by Ansible
|
||||||
|
|
||||||
|
GRUB_DEFAULT=0
|
||||||
|
GRUB_TIMEOUT=0
|
||||||
|
GRUB_TIMEOUT_STYLE="hidden"
|
||||||
|
GRUB_DISTRIBUTOR="{{ system_name }} (`lsb_release -i -s 2> /dev/null || echo Debian`)"
|
||||||
|
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash loglevel=0 rd.systemd.show_status=quiet rd.udev.log-priority=3 vt.global_cursor_default=0"
|
||||||
|
GRUB_CMDLINE_LINUX=""
|
||||||
|
|
||||||
|
# Uncomment to enable BadRAM filtering, modify to suit your needs
|
||||||
|
# This works with Linux (no patch required) and with any kernel that obtains
|
||||||
|
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
|
||||||
|
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
|
||||||
|
|
||||||
|
# Uncomment to disable graphical terminal (grub-pc only)
|
||||||
|
#GRUB_TERMINAL=console
|
||||||
|
|
||||||
|
# The resolution used on graphical terminal
|
||||||
|
# note that you can use only modes which your graphic card supports via VBE
|
||||||
|
# you can see them in real GRUB with the command `vbeinfo'
|
||||||
|
#GRUB_GFXMODE=640x480
|
||||||
|
|
||||||
|
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
|
||||||
|
#GRUB_DISABLE_LINUX_UUID=true
|
||||||
|
|
||||||
|
# Uncomment to disable generation of recovery mode menu entries
|
||||||
|
GRUB_DISABLE_RECOVERY="true"
|
||||||
|
|
||||||
|
# Uncomment to get a beep at grub start
|
||||||
|
#GRUB_INIT_TUNE="480 440 1"
|
@ -0,0 +1,2 @@
|
|||||||
|
[Daemon]
|
||||||
|
Theme={{ plymouth_theme }}
|
Loading…
Reference in New Issue