diff --git a/.ansible-lint b/.ansible-lint index 7782652..7fadcd3 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -2,3 +2,4 @@ skip_list: - 305 - 401 - 301 + - 503 diff --git a/files/plymouth.conf b/files/plymouth.conf new file mode 100644 index 0000000..1f129c6 --- /dev/null +++ b/files/plymouth.conf @@ -0,0 +1,3 @@ +[Daemon] +Theme=ibm +ShowDelay=1 diff --git a/tasks/boot.yml b/tasks/boot.yml index 8c29475..7b38341 100644 --- a/tasks/boot.yml +++ b/tasks/boot.yml @@ -21,11 +21,6 @@ - lightdm - lightdm-gtk-greeter -- name: Enable lightdm - systemd: - name: lightdm - enabled: true - - name: Disable PC Speaker modprobe: name: pcspkr @@ -91,3 +86,48 @@ systemd: name: nohang-desktop enabled: true + +- name: Install plymouth + aur: + skip_installed: true + name: "{{ item }}" + become: true + become_user: aur_builder + when: item not in installed_packages.stdout_lines + loop: + - plymouth + - plymouth-theme-ibm-git + +- name: Set kernel parameters + lineinfile: + path: /etc/default/grub + regexp: ^GRUB_CMDLINE_LINUX_DEFAULT= + line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash loglevel=3 rd.udev.log_priority=3 vt.global_cursor_default=0" + register: kernel_parameters + +- name: Install plymouth config + copy: + src: ./files/plymouth.conf + dest: /etc/plymouth/plymouthd.conf + mode: 0644 + register: plymouth_config + +- name: Set hooks + lineinfile: + path: /etc/mkinitcpio.conf + regexp: ^HOOKS= + line: HOOKS=(base udev plymouth autodetect keyboard keymap modconf block plymouth-encrypt filesystems fsck) + register: initrd_hooks + +- name: Rebuild initrd + command: mkinitcpio -P + when: plymouth_config.changed or initrd_hooks.changed + +- name: Rebuild GRUB config + command: grub-mkconfig -o /boot/grub/grub.cfg + when: kernel_parameters.changed + +- name: Enable lightdm + systemd: + name: lightdm-plymouth + enabled: true