2022-07-15 16:16:54 +00:00
|
|
|
- name: install required packages for asusctl
|
|
|
|
become: yes
|
|
|
|
apt:
|
|
|
|
update_cache: yes
|
|
|
|
pkg:
|
|
|
|
- rust-all
|
|
|
|
- libclang-dev
|
|
|
|
- libudev-dev
|
|
|
|
- make
|
|
|
|
|
|
|
|
- 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
|
2022-09-03 13:53:10 +00:00
|
|
|
ansible.builtin.systemd:
|
2022-07-15 16:16:54 +00:00
|
|
|
name: asusctl
|
|
|
|
state: started
|
|
|
|
enabled: yes
|