Ansible but more better

This commit is contained in:
Miha Frangež 2025-09-12 17:46:09 +02:00
parent 29b2beca5a
commit b7ce9d850d
13 changed files with 172 additions and 0 deletions

View file

@ -0,0 +1,37 @@
# - name: Change splash image
# become: true
# copy:
# src: splash.png
# dest: /usr/share/plymouth/themes/pix/splash.png
- name: Enable boot splash screen
become: true
shell: "raspi-config nonint get_boot_splash && raspi-config nonint do_boot_splash 0"
register: boot_splash
changed_when:
- boot_splash == "1"
- name: Disable color splash
become: true
community.general.ini_file:
path: /boot/firmware/config.txt
option: disable_splash
value: 1
no_extra_spaces: true
- name: Remove desktop bloat
become: true
apt:
name:
- gvfs
- gnome-keyring
- cups
state: absent
- name: Switch to wayfire
become: true
shell: "raspi-config nonint is_wayfire && raspi-config nonint do_wayland W2"
register: result
failed_when: ( result.rc not in [ 0, 1 ] )
changed_when: ( result.rc == 1 )