dotfiles/tasks/boot.yml

74 lines
1.7 KiB
YAML
Raw Normal View History

2019-03-14 21:34:29 +00:00
- name: "Install Grub"
aur:
skip_installed: true
name: "{{ item }}"
become: true
become_user: aur_builder
when: "item not in installed_packages.stdout_lines"
with_items:
- 'grub-customizer'
- 'grub2-theme-archlinux'
2019-05-13 20:52:51 +01:00
- 'lightdm'
2019-10-15 19:24:40 +01:00
- 'lightdm-gtk-greeter'
2019-05-24 22:30:01 +01:00
- 'os-prober'
2019-03-14 21:34:29 +00:00
2019-05-25 16:50:09 +01:00
- name: "Enable lightdm"
2019-05-26 11:52:41 +01:00
systemd:
2019-03-14 21:34:29 +00:00
name: "lightdm"
enabled: true
2019-05-25 16:50:09 +01:00
- name: "Disable PC Speaker"
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
2019-10-15 21:49:42 +01:00
- set_fact:
lightdm_gtk_preferences:
- {key: "background", value: "/usr/share/backgrounds/gnome/adwaita-night.jpg"}
- {key: "theme-name", value: "Numix"}
- {key: "icon-theme-name", value: "Numix-Square"}
- {key: "hide-user-image", value: "true"}
- {key: "clock-format", value: "%H:%M:%S"}
2019-05-13 20:52:51 +01:00
- name: Enable Slick greeter for lightdm
ini_file:
path: /etc/lightdm/lightdm.conf
section: "Seat:*"
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
section: "greeter"
option: "{{ item.key }}"
value: "{{ item.value }}"
mode: 0644
with_items: "{{ lightdm_gtk_preferences }}"
2019-05-27 21:55:17 +01:00
- name: "Install file system helpers"
aur:
skip_installed: true
name: "{{ item }}"
become: true
become_user: aur_builder
when: "item not in installed_packages.stdout_lines"
with_items:
- dosfstools
- exfat-utils
- hfsprogs
- ntfs-3g
2019-10-02 22:09:46 +01:00
- name: "Install Microcode"
aur:
skip_installed: true
name: "{{ item }}"
become: true
become_user: aur_builder
when: "item not in installed_packages.stdout_lines"
with_items:
- 'amd-ucode'
- 'intel-ucode'