Add tasks for making asusctl and superfgxctl

This commit is contained in:
Przemek Grondek 2022-07-15 18:16:54 +02:00
parent 1fa37669af
commit a51cb3f5d8
4 changed files with 74 additions and 0 deletions

View File

@ -0,0 +1,33 @@
- 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"
ansible.builtin.systemd:
become: yes
name: asusctl
state: started
enabled: yes

View File

@ -1 +1,5 @@
- import_tasks: battery.yml
- import_tasks: asusctl.yml
- import_tasks: supergfxctl.yml

View File

@ -0,0 +1,33 @@
- name: install required packages for supergfxctl
become: yes
apt:
update_cache: yes
pkg:
- curl
- git
- build-essential
- make
- name: checkout supergfxctl repo
git:
repo: "{{ asusctl.repo }}"
dest: "{{ ansible_user_dir }}/src/supergfxctl"
clone: yes
update: yes
- name: build asusctl
make:
chdir: "{{ ansible_user_dir }}/src/supergfxctl"
- name: install asusctl
become: yes
make:
chdir: "{{ ansible_user_dir }}/src/supergfxctl"
target: install
- name: "Enable service"
ansible.builtin.systemd:
become: yes
name: asusctl
state: started
enabled: yes

View File

@ -0,0 +1,4 @@
asusctl:
repo: https://gitlab.com/asus-linux/asusctl.git
supergfxctl:
repo: https://gitlab.com/asus-linux/supergfxctl.git