2023-09-10 22:25:36 +00:00
|
|
|
- name: Build aur packages
|
|
|
|
register: buildaur
|
|
|
|
become_user: "{{ build_user.name }}"
|
|
|
|
command: "aurutils-sync --no-view {{ item }}"
|
|
|
|
args:
|
|
|
|
creates: "/var/cache/pacman/custom/{{ item }}-*.pkg.tar.*"
|
|
|
|
loop:
|
|
|
|
- system76-keyboard-configurator
|
2023-09-09 21:08:36 +00:00
|
|
|
|
2023-09-10 22:25:36 +00:00
|
|
|
- name: Update cache
|
|
|
|
when: buildaur.changed
|
|
|
|
pacman:
|
|
|
|
name: []
|
|
|
|
state: present
|
|
|
|
update_cache: true
|
|
|
|
|
|
|
|
- name: Install packages
|
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- dfu-programmer # For flashing keyboard https://support.system76.com/articles/launch_2-firmware-update/
|
|
|
|
- avrdude # For flashing keyboard https://support.system76.com/articles/launch_2-firmware-update/
|
2023-09-10 22:38:09 +00:00
|
|
|
- lxqt-policykit # Need a polkit agent to launch the keyboard configurator
|
2023-09-10 22:25:36 +00:00
|
|
|
- system76-keyboard-configurator
|
|
|
|
state: present
|