40 lines
801 B
YAML
40 lines
801 B
YAML
- name: install required packages for asusctl
|
|
become: yes
|
|
apt:
|
|
update_cache: yes
|
|
pkg:
|
|
- cmake
|
|
- libayatana-appindicator3-1
|
|
- libclang-dev
|
|
- libgtk-3-dev
|
|
- libglib2.0-dev
|
|
- libgdk-pixbuf-2.0-dev
|
|
- libpango1.0-dev
|
|
- libudev-dev
|
|
- make
|
|
- rust-all
|
|
when: ansible_distribution == "Ubuntu"
|
|
|
|
- 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
|
|
ansible.builtin.systemd:
|
|
name: asusd
|
|
state: started
|
|
enabled: yes |