Files
ansible/gridlock.yml
2024-11-09 18:19:53 +01:00

93 lines
2.7 KiB
YAML

- name: Setup gridlock specific tasks
hosts: localhost
become_method: sudo
become: yes
tasks:
- name: install plymouth
apt:
name: plymouth
- name: get acab theme
git:
dest: /usr/share/plymouth/themes/acab
repo: https://git.v-tr.org/violet/plymouth-acab.git
# update: no
notify: update initramfs
- name: Set plymouth theme
shell:
cmd: "plymouth-set-default-theme acab && touch /etc/.plymouth"
creates: /etc/.plymouth
notify: update initramfs
- name: copy grub background
copy:
dest: /boot/grub/background.png
src: /usr/share/plymouth/themes/acab/plymouth_background_acab.png
- name: configure grub
lineinfile:
path: /etc/default/grub
line: "{{ item.line }}"
regexp: "{{ item.regexp }}"
with_items:
- line: GRUB_TIMEOUT=0
regexp: '^GRUB_TIMEOUT=.*'
- line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
regexp: '^GRUB_CMDLINE_LINUX_DEFAULT=.*'
- line: GRUB_GFXMODE=3840x2160
regexp: '#?GRUB_GFXMODE=.*'
- line: GRUB_BACKGROUND=/boot/grub/background.png
regexp: '^GRUB_BACKGROUND.*'
notify: update grub
- name: set grub colors
copy:
dest: /boot/grub/custom.cfg
content: set color_normal=dark-gray/black
- name: install kernel headers
apt:
name:
- linux-headers-amd64
default_release: stable-backports
- name: Install wifi driver
apt:
name:
- broadcom-sta-dkms
- name: setup dotfiles
command:
cmd: stow {{ item.name }}
chdir: ~/dotfiles
creates: "{{ item.path }}"
with_items:
- { name: sway-gridlock, path: ~/.config/sway/device-conf }
become: no
- name: install amd drivers and firmware
apt:
name:
- firmware-amd-graphics
- libgl1-mesa-dri
- libglx-mesa0
- mesa-vulkan-drivers
- xserver-xorg-video-all
- mesa-opencl-icd
- radeontop
- name: enable 32-bit support
shell:
cmd: "dpkg --add-architecture i386 && apt update && touch /etc/.multiarch"
creates: /etc/.multiarch
- name: install packages for 32bit vulkan support
apt:
name:
- libglx-mesa0:i386
- mesa-vulkan-drivers:i386
- libgl1-mesa-dri:i386
- name: install extra flatpaks
flatpak:
name:
- org.darktable.Darktable
- com.valvesoftware.Steam
handlers:
- name: update initramfs
command:
cmd: update-initramfs -u -k all
- name: update grub
command:
cmd: update-grub