Only install brightnessctl on mobile platform and include udev rules

This commit is contained in:
Oliver Traber 2025-08-05 21:29:16 +02:00
parent e1d1f02f36
commit 02af95a6fe
Signed by: Bluemedia
GPG key ID: C0674B105057136C

View file

@ -18,7 +18,6 @@
- wireplumber - wireplumber
- qpwgraph - qpwgraph
- alsa-utils - alsa-utils
- brightnessctl
- gnome-keyring - gnome-keyring
- adwaita-icon-theme - adwaita-icon-theme
- fonts-firacode - fonts-firacode
@ -31,6 +30,24 @@
- grim - grim
- swappy - swappy
- name: Install tools for mobile platform
become: yes
apt:
state: present
name:
- brightnessctl
when: hostvars[ansible_hostname]['mobile_platform']
- name: Install brightnessctl udev rules
become: yes
ansible.builtin.get_url:
url: https://github.com/Hummer12007/brightnessctl/raw/refs/heads/master/90-brightnessctl.rules
dest: /etc/udev/rules.d/90-brightnessctl.rules
owner: root
group: root
mode: u=rw,g=r,o=r
when: hostvars[ansible_hostname]['mobile_platform']
- name: Install zsh - name: Install zsh
become: yes become: yes
apt: apt: