ansible-desktop/roles/laptop/tasks/asusctl.yml

39 lines
760 B
YAML
Raw Normal View History

- 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
- libclang-dev
2023-04-24 02:04:17 +00:00
- libgtk-3-dev
- libglib2.0-dev
- libgdk-pixbuf-2.0-dev
- libpango1.0-dev
- libudev-dev
- make
2023-04-24 02:04:17 +00:00
- rust-all
- name: checkout asusctl repo
git:
repo: "{{ asusctl.repo }}"
dest: "{{ desktop_src_dir }}/asusctl"
clone: yes
update: yes
- name: build asusctl
make:
chdir: "{{ desktop_src_dir }}/asusctl"
- name: install asusctl
become: yes
make:
chdir: "{{ desktop_src_dir }}/asusctl"
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
state: started
enabled: yes