39 lines
775 B
YAML
39 lines
775 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
|
|
|
|
- name: checkout asusctl repo
|
|
git:
|
|
repo: "{{ asusctl.repo }}"
|
|
dest: "{{ ansible_user_dir }}/src/asusctl"
|
|
clone: yes
|
|
update: yes
|
|
|
|
- name: build asusctl
|
|
make:
|
|
chdir: "{{ ansible_user_dir }}/src/asusctl"
|
|
|
|
- name: install asusctl
|
|
become: yes
|
|
make:
|
|
chdir: "{{ ansible_user_dir }}/src/asusctl"
|
|
target: install
|
|
|
|
- name: "Enable service"
|
|
become: yes
|
|
ansible.builtin.systemd:
|
|
name: asusd
|
|
state: started
|
|
enabled: yes |