2022-07-15 16:16:54 +00:00
|
|
|
- name: install required packages for asusctl
|
|
|
|
become: yes
|
|
|
|
apt:
|
|
|
|
update_cache: yes
|
|
|
|
pkg:
|
2023-04-24 02:04:17 +00:00
|
|
|
- cmake
|
|
|
|
- libayatana-appindicator3-1
|
2022-07-15 16:16:54 +00:00
|
|
|
- libclang-dev
|
2023-04-24 02:04:17 +00:00
|
|
|
- libgtk-3-dev
|
|
|
|
- libglib2.0-dev
|
|
|
|
- libgdk-pixbuf-2.0-dev
|
|
|
|
- libpango1.0-dev
|
2022-07-15 16:16:54 +00:00
|
|
|
- libudev-dev
|
|
|
|
- make
|
2023-04-24 02:04:17 +00:00
|
|
|
- rust-all
|
2022-07-15 16:16:54 +00:00
|
|
|
|
|
|
|
- name: checkout asusctl repo
|
|
|
|
git:
|
|
|
|
repo: "{{ asusctl.repo }}"
|
2023-08-08 21:09:36 +00:00
|
|
|
dest: "{{ desktop_src_dir }}/asusctl"
|
2022-07-15 16:16:54 +00:00
|
|
|
clone: yes
|
|
|
|
update: yes
|
|
|
|
|
|
|
|
- name: build asusctl
|
|
|
|
make:
|
2023-08-08 21:09:36 +00:00
|
|
|
chdir: "{{ desktop_src_dir }}/asusctl"
|
2022-07-15 16:16:54 +00:00
|
|
|
|
|
|
|
- name: install asusctl
|
|
|
|
become: yes
|
|
|
|
make:
|
2023-08-08 21:09:36 +00:00
|
|
|
chdir: "{{ desktop_src_dir }}/asusctl"
|
2022-07-15 16:16:54 +00:00
|
|
|
target: install
|
|
|
|
|
|
|
|
- name: "Enable service"
|
|
|
|
become: yes
|
2022-09-03 13:53:10 +00:00
|
|
|
ansible.builtin.systemd:
|
2023-04-24 02:04:17 +00:00
|
|
|
name: asusd
|
2022-07-15 16:16:54 +00:00
|
|
|
state: started
|
|
|
|
enabled: yes
|