Only install brightnessctl on mobile platform and include udev rules
This commit is contained in:
parent
e1d1f02f36
commit
02af95a6fe
1 changed files with 18 additions and 1 deletions
|
@ -18,7 +18,6 @@
|
|||
- wireplumber
|
||||
- qpwgraph
|
||||
- alsa-utils
|
||||
- brightnessctl
|
||||
- gnome-keyring
|
||||
- adwaita-icon-theme
|
||||
- fonts-firacode
|
||||
|
@ -31,6 +30,24 @@
|
|||
- grim
|
||||
- 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
|
||||
become: yes
|
||||
apt:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue