2020-03-30 19:36:05 +01:00
|
|
|
- name: Install Grub
|
2021-11-07 00:45:19 +00:00
|
|
|
kewlfft.aur.aur:
|
2019-03-14 21:34:29 +00:00
|
|
|
name: "{{ item }}"
|
|
|
|
become: true
|
|
|
|
become_user: aur_builder
|
2019-12-09 21:09:00 +00:00
|
|
|
loop:
|
2020-04-15 08:50:11 +01:00
|
|
|
- grub-customizer
|
|
|
|
- grub2-theme-archlinux
|
2020-05-22 12:14:45 +01:00
|
|
|
- os-prober
|
|
|
|
|
|
|
|
- name: Install LightDM
|
2021-11-07 00:45:19 +00:00
|
|
|
kewlfft.aur.aur:
|
2020-05-22 12:14:45 +01:00
|
|
|
name: "{{ item }}"
|
|
|
|
become: true
|
|
|
|
become_user: aur_builder
|
|
|
|
loop:
|
2020-04-15 08:50:11 +01:00
|
|
|
- lightdm
|
|
|
|
- lightdm-gtk-greeter
|
2019-03-14 21:34:29 +00:00
|
|
|
|
2020-03-30 19:36:05 +01:00
|
|
|
- name: Disable PC Speaker
|
2019-05-25 16:50:09 +01:00
|
|
|
modprobe:
|
2019-03-14 21:34:29 +00:00
|
|
|
name: pcspkr
|
|
|
|
state: absent
|
2019-06-06 14:53:00 +01:00
|
|
|
ignore_errors: true
|
2019-05-13 20:52:51 +01:00
|
|
|
|
2020-05-22 12:14:45 +01:00
|
|
|
- name: Set lightdm greeter
|
2019-05-13 20:52:51 +01:00
|
|
|
ini_file:
|
|
|
|
path: /etc/lightdm/lightdm.conf
|
2020-03-30 19:36:05 +01:00
|
|
|
section: Seat:*
|
2019-05-13 20:52:51 +01:00
|
|
|
option: greeter-session
|
2019-10-15 19:24:40 +01:00
|
|
|
value: lightdm-gtk-greeter
|
2019-05-13 20:52:51 +01:00
|
|
|
mode: 0644
|
2019-05-27 21:55:17 +01:00
|
|
|
|
2019-10-15 21:49:42 +01:00
|
|
|
- name: Set LightDM settings
|
|
|
|
ini_file:
|
|
|
|
path: /etc/lightdm/lightdm-gtk-greeter.conf
|
2020-03-30 19:36:05 +01:00
|
|
|
section: greeter
|
2019-10-15 21:49:42 +01:00
|
|
|
option: "{{ item.key }}"
|
|
|
|
value: "{{ item.value }}"
|
|
|
|
mode: 0644
|
2019-12-09 21:09:00 +00:00
|
|
|
loop_control:
|
|
|
|
label: "{{ item.key }}"
|
|
|
|
loop:
|
2020-03-30 19:36:05 +01:00
|
|
|
- {key: background, value: /usr/share/backgrounds/gnome/adwaita-night.jpg}
|
|
|
|
- {key: theme-name, value: Matcha-dark-aliz}
|
|
|
|
- {key: icon-theme-name, value: Numix-Square}
|
|
|
|
- {key: hide-user-image, value: "true"}
|
|
|
|
- {key: clock-format, value: "%H:%M:%S"}
|
2019-10-15 21:49:42 +01:00
|
|
|
|
2020-03-30 19:36:05 +01:00
|
|
|
- name: Install file system helpers
|
2021-11-07 00:45:19 +00:00
|
|
|
kewlfft.aur.aur:
|
2019-05-27 21:55:17 +01:00
|
|
|
name: "{{ item }}"
|
|
|
|
become: true
|
|
|
|
become_user: aur_builder
|
2019-12-09 21:09:00 +00:00
|
|
|
loop:
|
2019-05-27 21:55:17 +01:00
|
|
|
- dosfstools
|
|
|
|
- exfat-utils
|
|
|
|
- hfsprogs
|
|
|
|
- ntfs-3g
|
2021-02-23 18:17:28 +00:00
|
|
|
- btrfs-progs
|
2019-10-02 22:09:46 +01:00
|
|
|
|
2020-03-30 19:36:05 +01:00
|
|
|
- name: Install Microcode
|
2021-11-07 00:45:19 +00:00
|
|
|
kewlfft.aur.aur:
|
2019-10-02 22:09:46 +01:00
|
|
|
name: "{{ item }}"
|
|
|
|
become: true
|
|
|
|
become_user: aur_builder
|
2019-12-09 21:09:00 +00:00
|
|
|
loop:
|
2020-04-15 08:50:11 +01:00
|
|
|
- amd-ucode
|
|
|
|
- intel-ucode
|
2020-05-06 16:54:52 +01:00
|
|
|
|
|
|
|
- name: Install nohang
|
2021-11-07 00:45:19 +00:00
|
|
|
kewlfft.aur.aur:
|
2020-05-06 16:55:39 +01:00
|
|
|
name: nohang-git
|
2020-05-06 16:54:52 +01:00
|
|
|
become: true
|
|
|
|
become_user: aur_builder
|
|
|
|
|
|
|
|
- name: Enable nohang
|
|
|
|
systemd:
|
|
|
|
name: nohang-desktop
|
|
|
|
enabled: true
|
2020-06-04 09:24:05 +01:00
|
|
|
state: started
|
2020-05-22 12:54:31 +01:00
|
|
|
|
|
|
|
- name: Install plymouth
|
2021-11-07 00:45:19 +00:00
|
|
|
kewlfft.aur.aur:
|
2020-05-22 12:54:31 +01:00
|
|
|
name: "{{ item }}"
|
|
|
|
become: true
|
|
|
|
become_user: aur_builder
|
|
|
|
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
|